Rename 50-config to 60-config

This commit is contained in:
aptalca
2018-03-08 00:43:15 -05:00
committed by GitHub
parent 06057df48c
commit 69d9d422ad

View File

@@ -0,0 +1,23 @@
#!/usr/bin/with-contenv bash
# create folders
mkdir -p \
/config/www/{backgrounds,icons}
# symlink user config
symlinks=( \
/var/www/localhost/heimdall/storage/app/public/backgrounds \
/var/www/localhost/heimdall/storage/app/public/icons \
/var/www/localhost/heimdall/database/app.sqlite )
for i in "${symlinks[@]}"
do
[[ -e "$i" && ! -L "$i" ]] && rm -rf "$i"
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
done
# permissions
chown -R abc:abc \
/config \
/var/www/localhost/heimdall