From b5de354345167dd22d955bbac0913f6a80d66b68 Mon Sep 17 00:00:00 2001 From: Captain Arepa Date: Mon, 1 May 2023 10:37:38 -0400 Subject: [PATCH] adjust deploy for custom bots --- deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index eeff8e4..89c335c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,6 +2,7 @@ USER=$1 # your ssh user HOST=$2 # your server host DIR=$3 # the directory where the bot files will go name it as you wish +BOT=$4 # the bot name echo "Target directory: ${DIR}" sleep 1 @@ -13,7 +14,8 @@ echo "Copying files..." mkdir "${DIR}" #cp -r venv/ ./"${DIR}" #cp markov.json roboduck.db roboduck.py update.py rdbot.py bot.cfg requirements.txt run.sh ./"${DIR}" -cp roboduck.py update.py rdbot.py bot.cfg requirements.txt run.sh ./"${DIR}" +cp roboduck.py update.py rdbot.py requirements.txt run.sh bot-"${BOT}".cfg ./"${DIR}" +mv ./"${DIR}"/bot-"${BOT}".cfg ./"${DIR}"/bot.cfg # Uncomment this to run tests # rsync -avz --dry-run live/ ${USER}@${HOST}:~/${DIR}