update
This commit is contained in:
@@ -1158,7 +1158,7 @@ USAGE(){
|
||||
|
||||
|
||||
if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
||||
[ "${2}" == "q" ] && ([ "${action}" == "check" ] || [ "${action}" == "update" ]) && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile}
|
||||
[ "${2}" == "q" ] && [ "${action}" == "check" ] && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile}
|
||||
if [ -f ${MMFOLDER}/mm.stop ]; then
|
||||
stoppedsince=`date +%s`-$(stat -c %Y ${MMFOLDER}/mm.stop)
|
||||
stopmsg="${idsCL[Yellow]}The system has currently been stopped for '$(SHOW_TIME ${stoppedsince})'.\n${idsCL[LightCyan]}(You'll need to run \"mm start\" to start services again)${idsCL[Default]}"
|
||||
|
||||
8
run.sh
8
run.sh
@@ -5,6 +5,14 @@ source /opt/idssys/defaults/colors.inc
|
||||
source /opt/idssys/defaults/default.inc
|
||||
source /opt/idssys/mediamanager/defaults.inc
|
||||
|
||||
if [ "${2}" == "q" ]; then
|
||||
unset idsCL idsBG idsST
|
||||
idsCL=('')
|
||||
idsBG=('')
|
||||
idsST=('')
|
||||
[ "${1}" == "update" ] && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile}
|
||||
fi
|
||||
|
||||
if [ -f /opt/idssys/settings/mediamanager.conf ]; then
|
||||
source /opt/idssys/settings/mediamanager.conf
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user