This commit is contained in:
Evgenii
2021-09-26 01:23:34 +03:00
parent 930908f4bb
commit e1aaa66457
2 changed files with 3 additions and 3 deletions

View File

@@ -10,12 +10,12 @@ MoonrakerTelegramBot_setup(){
dep=(virtualenv) dep=(virtualenv)
dependency_check dependency_check
status_msg "Downloading MoonrakerTelegramBot ..." status_msg "Downloading MoonrakerTelegramBot ..."
#force remove existing MoonrakerTelegramBot dir #force remove existing MoonrakerTelegramBot dir
[ -d $MOONRAKER_TELEGRAM_BOT_DIR ] && rm -rf $MOONRAKER_TELEGRAM_BOT_DIR [ -d $MOONRAKER_TELEGRAM_BOT_DIR ] && rm -rf $MOONRAKER_TELEGRAM_BOT_DIR
#clone into fresh MoonrakerTelegramBot dir #clone into fresh MoonrakerTelegramBot dir
cd ${HOME} && git clone $NLEF_REPO cd ${HOME} && git clone $NLEF_REPO
ok_msg "Download complete!" ok_msg "Download complete!"
status_msg "Installing MoonrakerTelegramBot ..." status_msg "Installing MoonrakerTelegramBot ..."
source $MOONRAKER_TELEGRAM_BOT_DIR/scripts/install.sh $MOONRAKER_TELEGRAM_BOT_DIR/scripts/install.sh
echo; ok_msg "MoonrakerTelegramBot successfully installed!" echo; ok_msg "MoonrakerTelegramBot successfully installed!"
} }

View File

@@ -320,7 +320,7 @@ update_MoonrakerTelegramBot(){
stop_MoonrakerTelegramBot stop_MoonrakerTelegramBot
cd $MOONRAKER_TELEGRAM_BOT_DIR cd $MOONRAKER_TELEGRAM_BOT_DIR
git pull git pull
./install.sh ./scripts/install.sh
ok_msg "Update complete!" ok_msg "Update complete!"
start_MoonrakerTelegramBot start_MoonrakerTelegramBot
} }