From 9db072d7699d838cf61c5fb1cd92520d03b510d7 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 7 Sep 2023 18:14:33 +0200 Subject: [PATCH] Remove build script --- build.sh | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 build.sh diff --git a/build.sh b/build.sh deleted file mode 100644 index 260cd13..0000000 --- a/build.sh +++ /dev/null @@ -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"