file_transfer_interval/install.sh

14 lines
416 B
Bash
Executable File

#!/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