Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk
f28457104d core.func: prevent profile.d scripts from aborting on non-zero exit 2026-04-03 20:54:18 +02:00
2 changed files with 1 additions and 2 deletions

View File

@@ -92,7 +92,6 @@ ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon off;'
[Install]
WantedBy=multi-user.target
EOF
sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf
systemctl daemon-reload
systemctl unmask openresty 2>/dev/null || true
systemctl restart openresty

View File

@@ -143,7 +143,7 @@ ensure_profile_loaded() {
# Source all profile.d scripts to ensure PATH is complete
if [[ -d /etc/profile.d ]]; then
for script in /etc/profile.d/*.sh; do
[[ -r "$script" ]] && source "$script"
[[ -r "$script" ]] && source "$script" || true
done
fi