Updated build script to ignore /fileshare
This commit is contained in:
parent
4295b9448b
commit
25719502c2
1 changed files with 1 additions and 1 deletions
2
build.sh
2
build.sh
|
|
@ -12,7 +12,7 @@ read -s SSH_PASSWORD
|
||||||
echo "Thank you! Your password has been securely collected."
|
echo "Thank you! Your password has been securely collected."
|
||||||
|
|
||||||
# Clean up the web server directory
|
# Clean up the web server directory
|
||||||
sshpass -p "$SSH_PASSWORD" ssh cory@10.10.10.40 'sudo rm -rf /var/caddy/docs.bsct.io/www/*'
|
sshpass -p "$SSH_PASSWORD" ssh cory@10.10.10.40 'find /var/caddy/docs.bsct.io/www -mindepth 1 ! -regex `^/var/caddy/docs.bsct.io/www/fileshare\(/.*\?' -delete
|
||||||
|
|
||||||
# Copy the built documentation to the web server
|
# Copy the built documentation to the web server
|
||||||
sshpass -p "$SSH_PASSWORD" scp -r ./site/* cory@10.10.10.40:/var/caddy/docs.bsct.io/www/
|
sshpass -p "$SSH_PASSWORD" scp -r ./site/* cory@10.10.10.40:/var/caddy/docs.bsct.io/www/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue