Docker: run entrypoint scripts for unitd-debug as well.

This commit is contained in:
Konstantin Pavlov 2020-07-13 15:06:26 +03:00
parent b6792b00ae
commit 55bac9153b

View file

@ -18,7 +18,7 @@ curl_put()
return 0
}
if [ "$1" = "unitd" ]; then
if [ "$1" = "unitd" -o "$1" = "unitd-debug" ]; then
if /usr/bin/find "/var/lib/unit/" -mindepth 1 -print -quit 2>/dev/null | /bin/grep -q .; then
echo "$0: /var/lib/unit/ is not empty, skipping initial configuration..."
else