removed run-once-script fixing #29
parent
761ec5738c
commit
a72df3b5ba
|
@ -17,8 +17,6 @@ echo -n "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.s
|
||||||
echo "Checking run-once script..."
|
echo "Checking run-once script..."
|
||||||
echo "Setting permissions."
|
echo "Setting permissions."
|
||||||
chmod +x run-once-script.sh
|
chmod +x run-once-script.sh
|
||||||
#run the script only if it has changed since the last time it was checked, save a checksum of it to /var/www/git/run-once to compare next time
|
|
||||||
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
|
|
||||||
|
|
||||||
# The status page is not just symlinked like the other files just to have a backup in case something goes wrong.
|
# The status page is not just symlinked like the other files just to have a backup in case something goes wrong.
|
||||||
# Not like that ever happened before....
|
# Not like that ever happened before....
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
rm /var/www/strassenkind.ip/*.conf
|
|
||||||
rm /var/www/strassenkind.ip/index.php
|
|
||||||
rm /var/www/strassenkind.ip/style.css
|
|
||||||
|
|
||||||
# leave this here for whenever this script is altered to be empty
|
|
||||||
exit 0
|
|
Loading…
Reference in New Issue