Update mm-scripts.sh
This commit is contained in:
@@ -1308,7 +1308,7 @@ USAGE(){
|
||||
|
||||
|
||||
if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
||||
[ "${2}" == "q" ] && [ "${action}" == "check" ] && echo -e "\n\n$(date) - Starting log #############################\n" >> ${outputlogfile}
|
||||
[ "${2}" == "q" ] && [ "${action}" == "check" ] && [ ! -f ${MMFOLDER}/mm.stop ] && 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]}"
|
||||
@@ -1316,9 +1316,11 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
||||
case $action in
|
||||
start | check)
|
||||
if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then
|
||||
echo -e "${stopmsg}"
|
||||
# [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile
|
||||
echo
|
||||
if [ "${2}" != "q" ]; then
|
||||
echo -e "${stopmsg}"
|
||||
# [ $VERBOSE = true ] && echo "$(date) - Not checking, system has been stopped" >> $logfile
|
||||
echo
|
||||
fi
|
||||
exit 1
|
||||
elif [ "${VPN_USER}" == "" ] || [ "${VPN_PASS}" == "" ] || [ "${VPN_SERVER}" == "" ]; then
|
||||
echo "$(date) - VPN User Info Missing" >> $logfile
|
||||
|
||||
Reference in New Issue
Block a user