mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-31 06:24:02 -04:00
fix(nginxproxymanager): reset PWD before certbot update to avoid deleted cwd
After building OpenResty, the script does cd /opt/openresty followed by rm -rf /opt/openresty, leaving $PWD pointing to a deleted directory. When pip runs in the certbot block, the subprocess inherits the invalid PWD and fails with OSError: No such file or directory. Add cd /root before the certbot block to reset to a valid directory. Closes #13240
This commit is contained in:
@@ -102,6 +102,7 @@ EOF
|
||||
msg_ok "Built OpenResty"
|
||||
fi
|
||||
|
||||
cd /root
|
||||
if [ -d /opt/certbot ]; then
|
||||
msg_info "Updating Certbot"
|
||||
$STD /opt/certbot/bin/pip install --upgrade pip setuptools wheel
|
||||
|
||||
Reference in New Issue
Block a user