From 56f29b5e9626c2ab6d0751da5d55db9ca223704a Mon Sep 17 00:00:00 2001 From: TheSpad Date: Fri, 25 Nov 2022 16:27:53 +0000 Subject: [PATCH] Symlink before permissions --- root/etc/cont-init.d/50-config | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 1168417..60a566e 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -37,13 +37,6 @@ for i in "${symlinks[@]}"; do fi done -# tidy up install files & set permissions -if [[ -f /heimdall/heimdall.tar.gz ]]; then - rm -rf /heimdall - chown -R abc:abc /app/www - chown -R abc:abc /config -fi - # copy searchproviders if not exists and symlink if [[ ! -f /config/www/searchproviders.yaml ]]; then cp /app/www/storage/app/searchproviders.yaml.orig /config/www/searchproviders.yaml @@ -51,6 +44,13 @@ fi rm -rf /app/www/storage/app/searchproviders.yaml ln -s /config/www/searchproviders.yaml /app/www/storage/app/searchproviders.yaml +# tidy up install files & set permissions +if [[ -f /heimdall/heimdall.tar.gz ]]; then + rm -rf /heimdall + chown -R abc:abc /app/www + chown -R abc:abc /config +fi + # copy .env if not exists if [[ ! -f /config/www/.env ]]; then install -g abc -o abc /app/www/.env.example /config/www/.env