Update mm-scripts.sh
This commit is contained in:
@@ -931,9 +931,6 @@ MMSETUP(){
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
read -n 1 -p "This will reset the config, do you wish to continue (y/N)?" choice
|
read -n 1 -p "This will reset the config, do you wish to continue (y/N)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy])
|
[Yy])
|
||||||
@@ -985,6 +982,7 @@ MMSETUP(){
|
|||||||
read -e EMAIL_NOTICE
|
read -e EMAIL_NOTICE
|
||||||
fi
|
fi
|
||||||
[ "${EMAIL_NOTICE}" != "" ] && echo "EMAIL_NOTICE=${EMAIL_NOTICE}" >> ${MMFOLDER}/settings.conf || echo "# EMAIL_NOTICE=email@address.com" >> ${MMFOLDER}/settings.conf
|
[ "${EMAIL_NOTICE}" != "" ] && echo "EMAIL_NOTICE=${EMAIL_NOTICE}" >> ${MMFOLDER}/settings.conf || echo "# EMAIL_NOTICE=email@address.com" >> ${MMFOLDER}/settings.conf
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
|
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
|
||||||
read -n 1 -p "Use previous Pushover App Token [${PUSHOVER_APP_TOKEN}] (Y/n)?" choice
|
read -n 1 -p "Use previous Pushover App Token [${PUSHOVER_APP_TOKEN}] (Y/n)?" choice
|
||||||
@@ -996,6 +994,7 @@ MMSETUP(){
|
|||||||
read -e PUSHOVER_APP_TOKEN
|
read -e PUSHOVER_APP_TOKEN
|
||||||
fi
|
fi
|
||||||
[ "${PUSHOVER_APP_TOKEN}" != "" ] && echo "PUSHOVER_APP_TOKEN=${PUSHOVER_APP_TOKEN}" >> ${MMFOLDER}/settings.conf || echo "# PUSHOVER_APP_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf
|
[ "${PUSHOVER_APP_TOKEN}" != "" ] && echo "PUSHOVER_APP_TOKEN=${PUSHOVER_APP_TOKEN}" >> ${MMFOLDER}/settings.conf || echo "# PUSHOVER_APP_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
|
if [ "${PUSHOVER_APP_TOKEN}" != "" ]; then
|
||||||
if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then
|
if [ "${PUSHOVER_USER_TOKEN}" != "" ]; then
|
||||||
@@ -1013,6 +1012,17 @@ MMSETUP(){
|
|||||||
echo "# PUSHOVER_USER_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf
|
echo "# PUSHOVER_USER_TOKEN=\"\"" >> ${MMFOLDER}/settings.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source /opt/idssys/mediamanager/settings.conf
|
||||||
|
IFS=,; SERVICES_CHECK=(${SERVICESCHECK}); unset IFS
|
||||||
|
|
||||||
|
read -n 1 -p "Would you like to update services [${srvcs2}] (Y/n)?" choice
|
||||||
|
case "$choice" in
|
||||||
|
[Nn]) tmp='';;
|
||||||
|
* ) for usrvc in "${UPDATE_SERVICES[@]}"; do
|
||||||
|
[ "${MM_UPDATE_REPO[${usrvc}]}" != "" ] && UPDATESERVICE ${usrvc}
|
||||||
|
done;;
|
||||||
|
esac
|
||||||
|
|
||||||
CNFG=true
|
CNFG=true
|
||||||
|
|
||||||
;;
|
;;
|
||||||
@@ -1032,7 +1042,7 @@ MMSETUP(){
|
|||||||
read -n 1 -p "Do you wish to start services now (y/N)?" choice
|
read -n 1 -p "Do you wish to start services now (y/N)?" choice
|
||||||
echo
|
echo
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy]) source /opt/idssys/mediamanager/settings.conf;IFS=,;SERVICES_CHECK=(${SERVICESCHECK});unset IFS;MMSTART start;;
|
[Yy]) MMSTART start;;
|
||||||
* ) echo -e "${idsCL[Cyan]}Not starting. To start, run the command '${idsCL[Green]}mm start${idsCL[LightCyan]}'${idsCL[Default]}";echo;echo;;
|
* ) echo -e "${idsCL[Cyan]}Not starting. To start, run the command '${idsCL[Green]}mm start${idsCL[LightCyan]}'${idsCL[Default]}";echo;echo;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user