From 7834f353f1b2aafc30adfda8d106378b9e905dfc Mon Sep 17 00:00:00 2001 From: josegonzalez Date: Thu, 16 Feb 2023 16:56:09 -0500 Subject: [PATCH] fix: ensure the services directory also exists Without this, we get issues attempting to install datastore plugins. Closes #5614 --- docker/etc/my_init.d/10_dokku_init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/etc/my_init.d/10_dokku_init b/docker/etc/my_init.d/10_dokku_init index 512deefdf..c79db82b1 100755 --- a/docker/etc/my_init.d/10_dokku_init +++ b/docker/etc/my_init.d/10_dokku_init @@ -36,12 +36,14 @@ main() { mkdir -p /mnt/dokku fi - directories=("/etc/ssh" "/home/dokku" "/var/lib/dokku/config" "/var/lib/dokku/data") + directories=("/etc/ssh" "/home/dokku" "/var/lib/dokku/config" "/var/lib/dokku/data" "/var/lib/dokku/services") for dir in "${directories[@]}"; do if [[ ! -e "$dir" ]]; then log-info "Copying ${dir} skel into place" mkdir -p "/mnt/dokku${dir}" - rsync -a "/skel${dir}/" "${dir}/" || log-fail "Unable to copy ${dir} skel into place" + if [[ -d "$dir" ]]; then + rsync -a "/skel${dir}/" "${dir}/" || log-fail "Unable to copy ${dir} skel into place" + fi fi # chown mount directories to "dokku:dokku"