update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='3.8.139-04232023'
|
VERS='3.8.140-04232023'
|
||||||
|
|
||||||
MMFOLDER="/opt/idssys/mediamanager"
|
MMFOLDER="/opt/idssys/mediamanager"
|
||||||
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
||||||
@@ -12,7 +12,7 @@ IFS=,
|
|||||||
UPDATE_SERVICES=(${UPDATESERVICES})
|
UPDATE_SERVICES=(${UPDATESERVICES})
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
noheader=' check noup stop update-organizr '
|
noheader=' check noup update update-organizr '
|
||||||
|
|
||||||
logfile=${MMFOLDER}/logs/logfile
|
logfile=${MMFOLDER}/logs/logfile
|
||||||
outputlogfile=${MMFOLDER}/logs/outputs.check.log
|
outputlogfile=${MMFOLDER}/logs/outputs.check.log
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ fi
|
|||||||
|
|
||||||
[ -f ${MMFOLDER}/vpninfo ] && source ${MMFOLDER}/vpninfo
|
[ -f ${MMFOLDER}/vpninfo ] && source ${MMFOLDER}/vpninfo
|
||||||
|
|
||||||
if [ "${action}" != "check" ] && [ "${action}" != "update" ] && [ "${2}" != "noup" ]; then
|
if [[ "${noheader}" != *" ${1} "* ]] && [[ "${noheader}" != *" ${2} "* ]]; then
|
||||||
if [ -f ${MMFOLDER}/update.available ]; then
|
if [ -f ${MMFOLDER}/update.available ]; then
|
||||||
dispup="${idsCL[Yellow]} - Update Available! (run '${idsCL[LightCyan]}mm update${idsCL[Yellow]}')${idsCL[Default]}"
|
dispup="${idsCL[Yellow]} - Update Available! (run '${idsCL[LightCyan]}mm update${idsCL[Yellow]}')${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user