service_deploy.sh 364 B

123456789101112131415161718
  1. ./service_remove.sh
  2. if [ -f "../cfg/dev.db" ];
  3. then
  4. echo "dev.db exist"
  5. else
  6. ./dev_db.sh
  7. echo "build dev.db"
  8. fi
  9. ./prepare.sh
  10. ./sta_db.sh $1
  11. ./proj_db.sh $1
  12. cp ./sta.service /etc/systemd/system/sta.service
  13. chmod a+rwx /etc/systemd/system/sta.service
  14. rm timestamp.out
  15. systemctl daemon-reload
  16. systemctl disable sta
  17. systemctl enable sta
  18. systemctl start sta