Update mm-scripts.sh
This commit is contained in:
@@ -1114,7 +1114,7 @@ MMSETUP(){
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -en "${idsCL[LightCyan]}This will reset the MM app config, do you wish to continue (y/N)? ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Do you wish to change enabled services (y/N)? ${idsCL[Default]}"
|
||||||
read -n 1 choice
|
read -n 1 choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy])
|
[Yy])
|
||||||
@@ -1165,9 +1165,25 @@ MMSETUP(){
|
|||||||
echo -e "\n# SERVICESCHECK=\n\n#[OPTIONAL]" >> ${MMFOLDER}/settings.conf
|
echo -e "\n# SERVICESCHECK=\n\n#[OPTIONAL]" >> ${MMFOLDER}/settings.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
|
source /opt/idssys/mediamanager/settings.conf
|
||||||
|
IFS=,; SERVICES_CHECK=(${SERVICESCHECK}); unset IFS
|
||||||
|
|
||||||
|
CNFG=true
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo -en "${idsCL[LightCyan]}Would you like to configure notications (y/N)? ${idsCL[Default]}"
|
||||||
|
read -n 1 choice
|
||||||
|
case "$choice" in
|
||||||
|
[Yy])
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[LightCyan]}You may choose to setup notifications by either SMTP and/or Pushover:${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]}You may choose to setup notifications by either SMTP and/or Pushover:${idsCL[Default]}"
|
||||||
|
echo
|
||||||
if [ "${EMAIL_NOTICE}" != "" ]; then
|
if [ "${EMAIL_NOTICE}" != "" ]; then
|
||||||
echo -en "${idsCL[LightYellow]}Use previous email address [${idsCL[White]}${EMAIL_NOTICE}${idsCL[LightYellow]}] (Y/n)? ${idsCL[Default]}"
|
echo -en "${idsCL[LightYellow]}Use previous email address [${idsCL[White]}${EMAIL_NOTICE}${idsCL[LightYellow]}] (Y/n)? ${idsCL[Default]}"
|
||||||
read -n 1 choice
|
read -n 1 choice
|
||||||
@@ -1214,20 +1230,8 @@ MMSETUP(){
|
|||||||
source /opt/idssys/mediamanager/settings.conf
|
source /opt/idssys/mediamanager/settings.conf
|
||||||
IFS=,; SERVICES_CHECK=(${SERVICESCHECK}); unset IFS
|
IFS=,; SERVICES_CHECK=(${SERVICESCHECK}); unset IFS
|
||||||
|
|
||||||
echo
|
|
||||||
echo -en "${idsCL[LightCyan]}Would you like to update media management services (y/N)? ${idsCL[Default]}"
|
|
||||||
read -n 1 choice
|
|
||||||
case "$choice" in
|
|
||||||
[Yy]) for usrvc in "${UPDATE_SERVICES[@]}"; do
|
|
||||||
[ "${MM_UPDATE_REPO[${usrvc}]}" != "" ] && UPDATESERVICE ${usrvc}
|
|
||||||
done;;
|
|
||||||
* ) tmp='';;
|
|
||||||
esac
|
|
||||||
|
|
||||||
CNFG=true
|
CNFG=true
|
||||||
|
;;
|
||||||
;;
|
|
||||||
*) tmp='';;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
@@ -1317,6 +1321,15 @@ MMSETUP(){
|
|||||||
* ) reboot;;
|
* ) reboot;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
echo
|
||||||
|
echo -en "${idsCL[LightCyan]}Would you like to update media management services (y/N)? ${idsCL[Default]}"
|
||||||
|
read -n 1 choice
|
||||||
|
case "$choice" in
|
||||||
|
[Yy]) for usrvc in "${UPDATE_SERVICES[@]}"; do
|
||||||
|
[ "${MM_UPDATE_REPO[${usrvc}]}" != "" ] && UPDATESERVICE ${usrvc}
|
||||||
|
done;;
|
||||||
|
* ) tmp='';;
|
||||||
|
esac
|
||||||
echo
|
echo
|
||||||
echo -en "${idsCL[LightCyan]}Would you like to start media management services (y/N)? ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}Would you like to start media management services (y/N)? ${idsCL[Default]}"
|
||||||
read -n 1 choice
|
read -n 1 choice
|
||||||
|
|||||||
Reference in New Issue
Block a user