added script to publish
This commit is contained in:
10
publish.sh
Executable file
10
publish.sh
Executable 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
|
||||
Reference in New Issue
Block a user