# echo "deploying : " $* ./prepare.sh ./service_remove.sh if [ ! -z "$1" ]; then ./ctn_db.sh std ./proj_db.sh $1 fi if [ -f "../cfg/dev.db" ]; then echo "dev.db exist" else ./dev_db.sh echo "build dev.db" fi # cp ./ctnd.service /etc/systemd/system/ctnd.service # chmod a+rwx /etc/systemd/system/ctnd.service rm timestamp.out # systemctl daemon-reload # systemctl disable ctnd # systemctl enable ctnd # systemctl start ctnd ./run.sh