Skip to content

Commit ffe9668

Browse files
authored
Update init-outdated-config/run
Fixed grep loop, causing nginx to never start.
1 parent 1567416 commit ffe9668

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • root/etc/s6-overlay/s6-rc.d/init-outdated-config

root/etc/s6-overlay/s6-rc.d/init-outdated-config/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ if [[ -f /config/nginx/ldap.conf ]]; then
1111
Ensure your configs are updated and remove /config/nginx/ldap.conf
1212
If you do not use this config, simply remove it."
1313
fi
14-
if grep -qrle ' /etc/letsencrypt' /config/nginx; then
14+
if grep -qr '/etc/letsencrypt' --include="*.conf" /config/nginx; then
1515
echo " The following nginx confs are using certificates from the obsolete location
1616
/etc/letsencrypt and should be updated to point to /config/etc/letsencrypt
1717
"
18-
echo -n " " && grep -rle ' /etc/letsencrypt' /config/nginx
18+
echo -n " " && grep -r '/etc/letsencrypt' --include="*.conf" /config/nginx | grep >
1919
fi

0 commit comments

Comments
 (0)