migrated last config file to .ini format

This commit is contained in:
eclipse 2025-05-04 16:14:05 +02:00
parent ada778e5a4
commit cfaa5c27c4
2 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# -*- coding: utf8 -*- # -*- coding: utf8 -*-
# source login credentials and paths # source login credentials and paths
source ./deploy.conf source ./deploy.ini
# get remote directory directly above target dir # get remote directory directly above target dir
# parameter expansion with '%' (remove suffix): cut off the rightmost occurrence of what comes after the percent sign # 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; rm -rf $REMOTE_DIR-old;
mv $REMOTE_DIR $REMOTE_DIR-old; mv $REMOTE_DIR $REMOTE_DIR-old;
mv $REMOTE_BASE_DIR/tmp $REMOTE_DIR; mv $REMOTE_BASE_DIR/tmp $REMOTE_DIR;
" "

5
deploy.ini Normal file
View File

@ -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