tools.e-durable.ch/deploy.sh
2021-02-19 09:50:00 +01:00

9 lines
196 B
Bash
Executable file

#!/bin/sh
DESTINATION=root@static.recycled.cloud:/var/www/
WEBSITE=tools.e-durable.ch
sftp -b - "$DESTINATION" <<- EOF
-rm $WEBSITE/*
$(for f in "$@"; do echo "put -R $f $WEBSITE/"; done)
EOF