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}