|
|
@ -2,6 +2,7 @@
|
|
|
|
USER=$1 # your ssh user
|
|
|
|
USER=$1 # your ssh user
|
|
|
|
HOST=$2 # your server host
|
|
|
|
HOST=$2 # your server host
|
|
|
|
DIR=$3 # the directory where the bot files will go name it as you wish
|
|
|
|
DIR=$3 # the directory where the bot files will go name it as you wish
|
|
|
|
|
|
|
|
BOT=$4 # the bot name
|
|
|
|
|
|
|
|
|
|
|
|
echo "Target directory: ${DIR}"
|
|
|
|
echo "Target directory: ${DIR}"
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
@ -13,7 +14,8 @@ echo "Copying files..."
|
|
|
|
mkdir "${DIR}"
|
|
|
|
mkdir "${DIR}"
|
|
|
|
#cp -r venv/ ./"${DIR}"
|
|
|
|
#cp -r venv/ ./"${DIR}"
|
|
|
|
#cp markov.json roboduck.db roboduck.py update.py rdbot.py bot.cfg requirements.txt run.sh ./"${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
|
|
|
|
# Uncomment this to run tests
|
|
|
|
# rsync -avz --dry-run live/ ${USER}@${HOST}:~/${DIR}
|
|
|
|
# rsync -avz --dry-run live/ ${USER}@${HOST}:~/${DIR}
|
|
|
|