gseps_inference/install.sh

23 lines
808 B
Bash

#!/bin/bash
if [ -f '/etc/systemd/system/ftp_server.service' ]; then
sudo systemctl disable ftp_server.service
sudo systemctl stop ftp_server.service
sudo rm -rf /etc/systemd/system/ftp_server.service
fi
if [ -f '/etc/systemd/system/inference_processor.service' ]; then
sudo systemctl disable inference_processor.service
sudo systemctl stop inference_processor.service
sudo rm -rf /etc/systemd/system/inference_processor.service
fi
sudo cp /home/sdt/Workspace/gseps/ftp_server.service /etc/systemd/system/
sudo cp /home/sdt/Workspace/gseps/inference_processor.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable ftp_server.service
sudo systemctl enable inference_processor.service
sudo systemctl start ftp_server.service
sudo systemctl start inference_processor.service