mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2025-10-27 03:03:38 +09:00
Symlink before permissions
This commit is contained in:
@@ -37,13 +37,6 @@ for i in "${symlinks[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
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
|
# copy searchproviders if not exists and symlink
|
||||||
if [[ ! -f /config/www/searchproviders.yaml ]]; then
|
if [[ ! -f /config/www/searchproviders.yaml ]]; then
|
||||||
cp /app/www/storage/app/searchproviders.yaml.orig /config/www/searchproviders.yaml
|
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
|
rm -rf /app/www/storage/app/searchproviders.yaml
|
||||||
ln -s /config/www/searchproviders.yaml /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
|
# copy .env if not exists
|
||||||
if [[ ! -f /config/www/.env ]]; then
|
if [[ ! -f /config/www/.env ]]; then
|
||||||
install -g abc -o abc /app/www/.env.example /config/www/.env
|
install -g abc -o abc /app/www/.env.example /config/www/.env
|
||||||
|
|||||||
Reference in New Issue
Block a user