diff options
author | Aeon512 <aeon512@gmail.com> | 2018-02-12 00:14:16 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-13 20:03:56 +0300 |
commit | df8703cac87b43ef0a10db0a7fd1dc5bfe05209f (patch) | |
tree | e73b611816756f692483d9b93f6029e93b93d2a9 /docker/debian-ncp | |
parent | 34a3bd5d529fc96e4316cdc740a934b7c758e61b (diff) |
Restore LetsEncrypt after docker-compose up/down
Diffstat (limited to 'docker/debian-ncp')
-rwxr-xr-x | docker/debian-ncp/run-parts.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docker/debian-ncp/run-parts.sh b/docker/debian-ncp/run-parts.sh index 0c8fe3f1..6ebe5ba1 100755 --- a/docker/debian-ncp/run-parts.sh +++ b/docker/debian-ncp/run-parts.sh @@ -33,7 +33,13 @@ test -f $FILE || { EOF chmod +x /usr/local/sbin/update-rc.d -for file in $( ls -1v /etc/services-enabled.d ); do +# Iterate only over 000* entries which might setup environment +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 /etc/services-enabled.d/"$file" start "$1" done |