file_transfer_interval/install.sh

14 lines
416 B
Bash
Raw Normal View History

2023-09-06 10:02:39 +00:00
#!/bin/bash
if [ -f '/etc/systemd/system/send_and_pub.service' ]; then
sudo systemctl disable send_and_pub.service
sudo systemctl stop send_and_pub.service
sudo rm -rf /etc/systemd/system/send_and_pub.service
fi
sudo cp /home/sdt/Workspace/gseps/send_and_pub.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable send_and_pub.service
sudo systemctl start send_and_pub.service