@@ -47,12 +47,12 @@ function update_script() {
4747 /etc/nginx \
4848 /var/log/nginx \
4949 /var/lib/nginx \
50- $STD /var/cache/nginx
50+ " $STD " /var/cache/nginx
5151 msg_ok " Cleaned Old Files"
5252
5353 msg_info " Downloading NPM v${RELEASE} "
54- curl -fsSL " https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} " -o " - | tar -xz"
55- cd nginx-proxy-manager-${RELEASE}
54+ curl -fsSL " https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} " | tar -xz
55+ cd nginx-proxy-manager-" ${RELEASE} " || exit
5656 msg_ok " Downloaded NPM v${RELEASE} "
5757
5858 msg_info " Setting up Enviroment"
@@ -62,8 +62,6 @@ curl -fsSL "https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/ta
6262 ln -sf /usr/local/openresty/nginx/ /etc/nginx
6363 sed -i " s|\" version\" : \" 0.0.0\" |\" version\" : \" $RELEASE \" |" backend/package.json
6464 sed -i " s|\" version\" : \" 0.0.0\" |\" version\" : \" $RELEASE \" |" frontend/package.json
65- sed -i ' s|"fork-me": ".*"|"fork-me": "Proxmox VE Helper-Scripts"|' frontend/js/i18n/messages.json
66- sed -i " s|https://github.com.*source=nginx-proxy-manager|https://helper-scripts.com|g" frontend/js/app/ui/footer/main.ejs
6765 sed -i ' s+^daemon+#daemon+g' docker/rootfs/etc/nginx/nginx.conf
6866 NGINX_CONFS=$( find " $( pwd) " -type f -name " *.conf" )
6967 for NGINX_CONF in $NGINX_CONFS ; do
@@ -105,7 +103,7 @@ curl -fsSL "https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/ta
105103 msg_ok " Setup Enviroment"
106104
107105 msg_info " Building Frontend"
108- cd ./frontend
106+ cd ./frontend || exit
109107 $STD pnpm install
110108 $STD pnpm upgrade
111109 $STD pnpm run build
@@ -130,7 +128,7 @@ curl -fsSL "https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/ta
130128}
131129EOF
132130 fi
133- cd /app
131+ cd /app || exit
134132 $STD pnpm install
135133 msg_ok " Initialized Backend"
136134
@@ -157,4 +155,4 @@ description
157155msg_ok " Completed Successfully!\n"
158156echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
159157echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
160- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :81${CL} "
158+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :81${CL} "
0 commit comments