mirror of
https://github.com/dw-0/kiauh.git
synced 2025-11-01 18:05:48 +01:00
Adds installation and removing feature for https://github.com/nlef/moonraker-telegram-bot
24 lines
758 B
Bash
24 lines
758 B
Bash
install_MoonrakerTelegramBot(){
|
|
source_kiauh_ini
|
|
#MoonrakerTelegramBot main installation
|
|
MoonrakerTelegramBot_setup
|
|
#after install actions
|
|
restart_MoonrakerTelegramBot
|
|
}
|
|
|
|
MoonrakerTelegramBot_setup(){
|
|
source_kiauh_ini
|
|
export klipper_cfg_loc
|
|
dep=(virtualenv)
|
|
dependency_check
|
|
status_msg "Downloading MoonrakerTelegramBot ..."
|
|
#force remove existing MoonrakerTelegramBot dir
|
|
[ -d $MOONRAKER_TELEGRAM_BOT_DIR ] && rm -rf $MOONRAKER_TELEGRAM_BOT_DIR
|
|
#clone into fresh MoonrakerTelegramBot dir
|
|
cd ${HOME} && git clone $NLEF_REPO
|
|
ok_msg "Download complete!"
|
|
status_msg "Installing MoonrakerTelegramBot ..."
|
|
$MOONRAKER_TELEGRAM_BOT_DIR/scripts/install.sh
|
|
echo; ok_msg "MoonrakerTelegramBot successfully installed!"
|
|
}
|