diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/constant-sync.sh | 5 | ||||
| -rwxr-xr-x | scripts/setup.sh | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/constant-sync.sh b/scripts/constant-sync.sh new file mode 100755 index 0000000..c016b44 --- /dev/null +++ b/scripts/constant-sync.sh @@ -0,0 +1,5 @@ +#!/bin/bash +while true; do + rsync -av --delete ./zola-static/public/ /var/www/homepage/ + sleep 5 # wait 5 seconds before the next sync +done diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100755 index 0000000..d9fb749 --- /dev/null +++ b/scripts/setup.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +ln -sf $(pwd)/nginx/homepage.conf /etc/nginx/sites-enabled/homepage.conf +mkdir /var/www/homepage/ +rsync -av --delete ./zola-static/public/ /var/www/homepage/ |
