mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 09:35:58 +02:00
Update 99-run.sh
This commit is contained in:
@@ -5,9 +5,20 @@ set -e
|
|||||||
#################
|
#################
|
||||||
# Set structure #
|
# Set structure #
|
||||||
#################
|
#################
|
||||||
cp -rf /app/* /config/
|
for folders in config users indexdir database secret media cache thumbnail_cache grampsdb; do
|
||||||
rm -r /app
|
mkdir -p /config/"$folders"
|
||||||
ln -s /config /app
|
if [ -d /app/"$folders" ] && [ "$(ls -A /app/"$folders")" ]; then
|
||||||
|
cp -rf /app/"$folders"/* /config/"$folders"
|
||||||
|
fi
|
||||||
|
rm -rf /app/"$folders"
|
||||||
|
ln -sf /config/"$folders" /app/"$folders"
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -d /root/.gramps/grampsdb ] && [ "$(ls -A /root/.gramps/grampsdb)" ]; then
|
||||||
|
cp -rf /root/.gramps/grampsdb/* /config/grampsdb
|
||||||
|
rm -rf /root/.gramps/grampsdb
|
||||||
|
ln -sf /config/grampsdb /root/.gramps/grampsdb
|
||||||
|
fi
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
# Create secret key #
|
# Create secret key #
|
||||||
|
|||||||
Reference in New Issue
Block a user