globalinitiative-xml-sharing/deploy.sh

10 lines
195 B
Bash
Raw Permalink Normal View History

2021-02-03 17:34:11 +01:00
#!/bin/sh
2021-02-25 10:06:19 +01:00
DESTINATION='root@212.90.206.98:/var/www/'
WEBSITE='212.90.206.98'
2021-02-03 17:34:11 +01:00
2021-02-25 10:06:19 +01:00
sftp -P 2222 -b - "$DESTINATION" <<- EOF
2021-02-03 17:34:11 +01:00
-rm $WEBSITE/*
$(for f in "$@"; do echo "put -R $f $WEBSITE/"; done)
EOF