diff options
-rwxr-xr-x | docker-common/debian-ncp/run-parts.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker-common/debian-ncp/run-parts.sh b/docker-common/debian-ncp/run-parts.sh index ad4ac6ff..6ae2c4e0 100755 --- a/docker-common/debian-ncp/run-parts.sh +++ b/docker-common/debian-ncp/run-parts.sh @@ -38,12 +38,12 @@ EOF chmod +x /usr/local/sbin/update-rc.d # Iterate only over 000* entries which might setup environment -for file in $( ls -1v /etc/services-enabled.d | grep 000* ); do +for file in $( ls -1v /etc/services-enabled.d | grep ^000.* ); do /etc/services-enabled.d/"$file" start "$1" done # Iterate over remaining entries -for file in $( ls -1v -I 000* /etc/services-enabled.d ); do +for file in $( ls -1v /etc/services-enabled.d | grep -v ^000.* ); do /etc/services-enabled.d/"$file" start "$1" done |