Remove build script

This commit is contained in:
Christoph Hagen 2023-09-07 18:14:33 +02:00
parent bf6f1b3339
commit 9db072d769

View File

@ -1,31 +0,0 @@
supervisor_name=schafkopf
echo "[1/7] Stopping server..."
sudo supervisorctl stop supervisor_name
echo "[2/7] Changing permissions..."
if ! sudo chown -R pi:pi .; then
exit 0
fi
echo "[3/7] Pulling changes..."
if ! git pull; then
exit 0
fi
echo "[4/7] Building project..."
if ! swift build -c release; then
exit 0
fi
echo "[5/7] Restoring permissions..."
if ! sudo chown -R www-data:www-data .; then
exit 0
fi
echo "[6/7] Starting server..."
if ! sudo supervisorctl start $supervisor_name; then
exit 0
fi
echo "[7/7] Done"