drone script fixes
continuous-integration/drone/push Build is passing Details

production
Override-6 2 years ago
parent 21da8a0762
commit 78ca85eaff

@ -19,7 +19,7 @@ fi
if [ "$PROD_PID" ]; then if [ "$PROD_PID" ]; then
#will cause the old server to gracefully shutdown #will cause the old server to gracefully shutdown
echo "shutting down old server version ..." echo "shutting down old server version ..."
kill -s SIGINT "$PROD_PID" kill "$PROD_PID"
while [ ! "$(prod_pid)" ]; do sleep 1; done #sleep until process ends while [ ! "$(prod_pid)" ]; do sleep 1; done #sleep until process ends
fi fi