added script to publish

This commit is contained in:
Marcel Straub
2022-01-16 20:13:37 +01:00
parent c963b63fe3
commit dde84e03c0

10
publish.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
TARGET="webpage_blog@vpn.straubs.eu:/var/www/blog/html/"
hugo
if [ $? -eq 0 ]; then
echo "Everything fine --> publishing"
rsync -rvhz --progress public/ ${TARGET}
fi