diff --git a/publish.sh b/publish.sh index 299b7dc..7448fa4 100755 --- a/publish.sh +++ b/publish.sh @@ -9,11 +9,11 @@ hugo # push the files to the webserver # scp -rp * root@boethius:/hosting/sites/gmgauthier.com echo "COPY THE FILES..." -rsync -avh -e ssh ./public/* root@boethius:/hosting/sites/gmgauthier.com +rsync -avh -e ssh ./public/* gmgauthier@boethius:/hosting/sites/gmgauthier.com echo "SET OWNERSHIP TO APACHE" -echo "chown -R www-data:www-data /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash +echo "chown -R www-data:www-data /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash echo "LIST FILES" -echo "ls -lA /hosting/sites/gmgauthier.com" | ssh root@boethius /bin/bash +echo "ls -lA /hosting/sites/gmgauthier.com" | ssh gmgauthier@boethius /bin/bash # remove the old build # rm -R public