commit 3bf7db44142c4bf11481dac678e1fd62a7cdf0e3 parent 1c512995cd2c2c6327df605d64cdde26d97eecff Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Mon, 23 Sep 2019 12:27:19 +0200 Update host information Diffstat:
M | .local/bin/upload | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.local/bin/upload b/.local/bin/upload @@ -5,8 +5,8 @@ version=1.0 # Upload target host="adamsgaard.dk" -user="www" -remotedir="/var/www/html/files_nonpub" +user="ad" +remotedir="/var/www/domains/adamsgaard.dk/files_nonpub" show_help() { echo "usage: ${0##*/} [OPTIONS] FILE1 [FILE2...[FILE N]]" @@ -99,7 +99,7 @@ download_file() { } delete_file() { - ssh "$user"@"$host" "rm /var/www/html/files_nonpub/$1" + ssh "$user"@"$host" "rm ${remotedir}/$1" } die() {