refactor: plg file upload to unraid server script

This commit is contained in:
Zack Spear
2023-11-07 12:58:03 -08:00
committed by Zack Spear
parent f45f5f7a9a
commit 485fc2a3b6

View File

@@ -23,10 +23,10 @@ fi
echo "$server_name" > "$state_file"
# Source directory path
source_directory="plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers"
source_directory="plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins"
# Destination directory path
destination_directory="/usr/local/emhttp/plugins/dynamix.my.servers"
destination_directory="/usr/local/emhttp/plugins"
# Replace the value inside the rsync command with the user's input
rsync_command="rsync -avz --progress --stats -m -e ssh \"$source_directory/\" \"root@${server_name}:$destination_directory/\""