mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2025-10-26 18:53:40 +09:00
Symlink before permissions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user