Compare commits

..

2 Commits

Author SHA1 Message Date
tteckster f74869108c
Update update-lxcs.sh
silent `apt update` and show `apt list --upgradable`
2023-04-27 01:48:35 -04:00
tteckster 13e65979ee
Update nginxproxymanager.sh
enable services after update
fixes https://github.com/tteck/Proxmox/issues/1368
2023-04-27 01:34:39 -04:00
2 changed files with 3 additions and 4 deletions

View File

@ -165,9 +165,8 @@ EOF
msg_info "Starting Services"
sed -i -e 's/^pid/#pid/' -e 's/npmuser/root/' /usr/local/openresty/nginx/conf/nginx.conf
sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' /opt/certbot/pyvenv.cfg
systemctl enable npm &>/dev/null
systemctl start openresty
systemctl start npm
systemctl enable -q --now openresty
systemctl enable -q --now npm
msg_ok "Started Services"
msg_info "Cleaning up"

View File

@ -45,7 +45,7 @@ function update_container() {
alpine) pct exec "$container" -- ash -c "apk update && apk upgrade" ;;
archlinux) pct exec "$container" -- bash -c "pacman -Syyu --noconfirm";;
fedora|rocky|centos|alma) pct exec "$container" -- bash -c "dnf -y update && dnf -y upgrade" ;;
ubuntu|debian|devuan) pct exec "$container" -- bash -c "apt-get update && apt-get -y dist-upgrade" ;;
ubuntu|debian|devuan) pct exec "$container" -- bash -c "apt-get update 2>/dev/null | grep 'packages.*upgraded'; apt list --upgradable && apt-get -y dist-upgrade" ;;
esac
}
header_info