copy status page to allow for status examination in case of the deployment failing

master
Jan Danielzick 2020-03-08 18:07:50 +01:00
parent fd0132c937
commit e00f134195
1 changed files with 4 additions and 0 deletions

4
deployment-script.sh Executable file → Normal file
View File

@ -12,6 +12,10 @@ echo "Setting permissions."
chmod +x run-once-script.sh 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 -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 "============================================================================== echo "==============================================================================
Done." Done."