2
0

feat: build enhancement

This commit is contained in:
simonzhangsz
2024-12-13 21:25:54 +08:00
parent 0417a1477e
commit 244f4e7b81
6 changed files with 174 additions and 31 deletions

View File

@@ -18,32 +18,32 @@ Jars=" \
"
case "$1" in
start)
start)
cd ${DockerDir}
${DockerCompose} up -d
echo $! > ${PIDFile}
;;
stop)
;;
stop)
cd ${DockerDir}
${DockerCompose} down
rm ${PIDFile}
;;
restart)
$0 stop
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
;;
status)
cd ${DockerDir}
${DockerCompose} ps
;;
version)
;;
version)
cd ${WFCBinDir}
java printJarVer ${Jars}
;;
*)
;;
*)
echo "WANFi Controller Service"
echo "Usage: $0 start|stop|restart|status|version"
exit 1
;;
;;
esac