update
This commit is contained in:
@@ -38,7 +38,7 @@ MM_SERVICE_PORTS['bazarr']='6767'
|
|||||||
|
|
||||||
declare -A MM_UPDATE_REPO
|
declare -A MM_UPDATE_REPO
|
||||||
MM_UPDATE_REPO['ombi']='Ombi-app'
|
MM_UPDATE_REPO['ombi']='Ombi-app'
|
||||||
# MM_UPDATE_REPO['radarr']='radarr'
|
MM_UPDATE_REPO['radarr']='radarr'
|
||||||
MM_UPDATE_REPO['lidarr']='lidarr'
|
MM_UPDATE_REPO['lidarr']='lidarr'
|
||||||
MM_UPDATE_REPO['jackett']='jackett'
|
MM_UPDATE_REPO['jackett']='jackett'
|
||||||
MM_UPDATE_REPO['bazarr']='morpheus65535'
|
MM_UPDATE_REPO['bazarr']='morpheus65535'
|
||||||
|
|||||||
@@ -101,21 +101,26 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||||
|
|
||||||
msg="Starting the VPN Tunnel"
|
msg="Starting the VPN Tunnel"
|
||||||
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
||||||
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
|
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
||||||
|
|
||||||
"${VPN_START[@]}" >/dev/null 2>&1
|
"${VPN_START[@]}" >/dev/null 2>&1
|
||||||
sleep 5s
|
sleep 5s
|
||||||
else
|
else
|
||||||
msg="The VPN Tunnel is already running"
|
msg="The VPN Tunnel is already running"
|
||||||
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
||||||
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
|
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
msg="Verifying the VPN Tunnel"
|
msg="Verifying the VPN Tunnel"
|
||||||
|
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
||||||
|
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
|
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
||||||
mmsv='Verifying'
|
mmsv='Verifying'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
c=0; spc=''; spc1=$((${cw_spc}-${#msg}))
|
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
|
||||||
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
|
||||||
|
|
||||||
[ $VERBOSE = true ] && echo "$(date) - ${mmsv} VPN..." >> $logfile
|
[ $VERBOSE = true ] && echo "$(date) - ${mmsv} VPN..." >> $logfile
|
||||||
|
|
||||||
|
|
||||||
@@ -337,6 +342,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
echo -e "${idsCL[Red]}${msg}${idsCL[Default]}"
|
echo -e "${idsCL[Red]}${msg}${idsCL[Default]}"
|
||||||
echo "$(date) - ${msg}" >> $logfile
|
echo "$(date) - ${msg}" >> $logfile
|
||||||
SENDNOTICE "${srvc^} Service Issue" "${msg}" 1
|
SENDNOTICE "${srvc^} Service Issue" "${msg}" 1
|
||||||
|
|
||||||
tryupdate="true"
|
tryupdate="true"
|
||||||
|
|
||||||
msg="Updating ${srvc^} Service"
|
msg="Updating ${srvc^} Service"
|
||||||
@@ -347,7 +353,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
|||||||
rm -f ${MMFOLDER}/mm.${srvc}.starting
|
rm -f ${MMFOLDER}/mm.${srvc}.starting
|
||||||
|
|
||||||
else
|
else
|
||||||
touch ${MMFOLDER}/mm.${srvc}.starting
|
[ "${MM_UPDATE_REPO[$srvc]}" != "" ] && touch ${MMFOLDER}/mm.${srvc}.starting
|
||||||
fi
|
fi
|
||||||
checkport="go"
|
checkport="go"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user