diff --git a/.gitignore b/.gitignore index d4c467b..625003c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ !**/*.gmi !**/*.json !**/*.gitignore -!*/ \ No newline at end of file +!*/ +!push \ No newline at end of file diff --git a/push b/push new file mode 100755 index 0000000..69dc782 --- /dev/null +++ b/push @@ -0,0 +1,22 @@ +#!/bin/bash + +SRC="public" +ZIP="ps.zip" + +echo "snap $SRC > $ZIP ..." +cd $SRC +rm $ZIP +zip -r -9 $ZIP ./ +cd ../ + +echo "update repository ..." +git pull +git add . +git commit -m "$(date +%s)" +git push + +echo "update remote host (localnet) ..." +rclone sync $SRC localnet: --update -v + +echo "update remote host (yesterweb) ..." +rclone sync $SRC yesterweb: --update --no-check-certificate -v \ No newline at end of file diff --git a/webdav.json b/webdav.json deleted file mode 100644 index 9434412..0000000 --- a/webdav.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "/public": { - "url": "https://ps.cities.yesterweb.org:1994/", - "ignoreSSLErrors": true, - "uploadOnSave": { - "enabled": true, - "pattern": [ - ".gmi$" - ] - } - } -} \ No newline at end of file