Update npm_update.sh

remove junk
pull/727/head
tteckster 2022-11-08 07:15:50 -05:00 committed by GitHub
parent 312377af97
commit d521a3c682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -54,7 +54,6 @@ function msg() {
local TEXT="$1" local TEXT="$1"
echo -e "$TEXT" echo -e "$TEXT"
} }
T="$(date +%M)"
if [ -f /lib/systemd/system/npm.service ]; then if [ -f /lib/systemd/system/npm.service ]; then
echo -en "${GN} Prep For Update... " echo -en "${GN} Prep For Update... "
@ -168,10 +167,9 @@ systemctl enable npm &>/dev/null
systemctl start openresty systemctl start openresty
systemctl start npm systemctl start npm
echo -e "${CM}${CL} \r" echo -e "${CM}${CL} \r"
TS="$(($(date +%M) - T))"
IP=$(hostname -I | cut -f1 -d ' ') IP=$(hostname -I | cut -f1 -d ' ')
echo -e "${GN}Successfully Updated Nginx Proxy Manager to ${RD}${RELEASE}${CL} and it took ${RD}${TS} minutes.${CL} echo -e "${GN}Successfully Updated Nginx Proxy Manager to ${RD}${RELEASE}${CL}.
NPM should be reachable at ${BL}http://${IP}:81 ${CL} NPM should be reachable at ${BL}http://${IP}:81 ${CL}
" "