service_deploy.sh 454 B

123456789101112131415161718192021222324252627
  1. #
  2. echo "deploying : " $*
  3. ./prepare.sh
  4. ./service_remove.sh
  5. if [ ! -z "$1" ];
  6. then
  7. ./ctn_db.sh std
  8. ./proj_db.sh $1
  9. fi
  10. if [ -f "../cfg/dev.db" ];
  11. then
  12. echo "dev.db exist"
  13. else
  14. ./dev_db.sh
  15. echo "build dev.db"
  16. fi
  17. # cp ./ctnd.service /etc/systemd/system/ctnd.service
  18. # chmod a+rwx /etc/systemd/system/ctnd.service
  19. rm timestamp.out
  20. # systemctl daemon-reload
  21. # systemctl disable ctnd
  22. # systemctl enable ctnd
  23. # systemctl start ctnd
  24. ./run.sh