From e00f13419596c3d93ebabde59a905b82bdc9ab56 Mon Sep 17 00:00:00 2001 From: Jan Danielzick Date: Sun, 8 Mar 2020 18:07:50 +0100 Subject: [PATCH] copy status page to allow for status examination in case of the deployment failing --- deployment-script.sh | 4 ++++ 1 file changed, 4 insertions(+) mode change 100755 => 100644 deployment-script.sh diff --git a/deployment-script.sh b/deployment-script.sh old mode 100755 new mode 100644 index c95e993..3995bd7 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -12,6 +12,10 @@ echo "Setting permissions." chmod +x run-once-script.sh echo -ne "import os, sys\nif \"`sha256sum run-once-script.sh`\" == \"`cat ../run-once`\":\n print \"File has not changed. Aborting.\"\n sys.exit()\nelse:\n print \"File has changed. Calculating checksum...\"\n os.system(\"sha256sum run-once-script.sh > ../run-once\")\n print \"\"\"Executing...\n==========\"\"\"\n os.system(\"./run-once-script.sh\")\n print \"\"\"==========\nDone.\"\"\"" | python +echo "Replacing status page..." +cp -v ./strassenkind.php /var/www/strassenkind.ip/index.php +cp -v ./internal.css /var/www/strassenkind.ip/style.css +echo "Done. echo "============================================================================== Done."