diff --git a/deploy-via-ftp.sh b/deploy-via-ftp.sh index b5cf345..de61d37 100755 --- a/deploy-via-ftp.sh +++ b/deploy-via-ftp.sh @@ -2,7 +2,7 @@ # -*- coding: utf8 -*- # source login credentials and paths -source ./deploy.conf +source ./deploy.ini # get remote directory directly above target dir # parameter expansion with '%' (remove suffix): cut off the rightmost occurrence of what comes after the percent sign @@ -17,4 +17,4 @@ mirror --reverse --continue --verbose $LOCAL_DIR $REMOTE_BASE_DIR/tmp; rm -rf $REMOTE_DIR-old; mv $REMOTE_DIR $REMOTE_DIR-old; mv $REMOTE_BASE_DIR/tmp $REMOTE_DIR; -" \ No newline at end of file +" diff --git a/deploy.ini b/deploy.ini new file mode 100644 index 0000000..ecc81d8 --- /dev/null +++ b/deploy.ini @@ -0,0 +1,5 @@ +HOST="tobias-radloff.de" #Keep just the address +USER="linweb62" #Your username +PASS="tK6cG2fX5y" #Your password +LOCAL_DIR="/home/tobias/Software/Websites/t-r.de/output" #Your local directory +REMOTE_DIR="/www/tobias-radloff.de" #FTP server directory \ No newline at end of file