change installation

This commit is contained in:
Evgenii
2021-09-19 17:35:15 +03:00
parent 9ed1e1623e
commit 4bd0796d54

View File

@@ -5,44 +5,10 @@ install_MoonrakerTelegramBot(){
get_user_selections_MoonrakerTelegramBot
#MoonrakerTelegramBot main installation
MoonrakerTelegramBot_setup
#execute customizations
symlinks_MoonrakerTelegramBot
#after install actions
restart_MoonrakerTelegramBot
}
system_check_MoonrakerTelegramBot(){
source_kiauh_ini
if [ ! -e $klipper_cfg_loc/telegram.log ]; then
MOONRAKERTELEGRAMBOT_SL_FOUND="false"
else
MOONRAKERTELEGRAMBOT_SL_FOUND="true"
fi
}
get_user_selections_MoonrakerTelegramBot(){
#user selection for telegram.log symlink
if [ "$KMOONRAKERTELEGRAMBOT_SL_FOUND" = "false" ]; then
while true; do
echo
read -p "${cyan}###### Create telegram.log symlink? (y/N):${default} " yn
case "$yn" in
Y|y|Yes|yes)
echo -e "###### > Yes"
SEL_MTBLOG_SL="true"
break;;
N|n|No|no|"")
echo -e "###### > No"
SEL_MTBLOG_SL="false"
break;;
*)
print_unkown_cmd
print_msg && clear_msg;;
esac
done
fi
}
MoonrakerTelegramBot_setup(){
dep=(virtualenv)
dependency_check
@@ -53,7 +19,7 @@ MoonrakerTelegramBot_setup(){
cd ${HOME} && git clone $NLEF_REPO
ok_msg "Download complete!"
status_msg "Installing MoonrakerTelegramBot ..."
$MOONRAKERTELEGRAMBOT_DIR/scripts/install.sh
$MOONRAKERTELEGRAMBOT_DIR/scripts/install.sh
echo; ok_msg "MoonrakerTelegramBot successfully installed!"
}