mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-01 19:48:47 +02:00
Update 99-run.sh
This commit is contained in:
@@ -14,11 +14,11 @@ for folders in config users indexdir database secret media cache thumbnail_cache
|
|||||||
ln -sf /config/"$folders" /app/"$folders"
|
ln -sf /config/"$folders" /app/"$folders"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -d /root/.gramps/grampsdb ] && [ "$(ls -A /root/.gramps/grampsdb)" ]; then
|
if [ -d /root/.gramps ] && [ "$(ls -A /root/.gramps)" ]; then
|
||||||
mkdir -p /config/grampsdb
|
mkdir -p /config/gramps
|
||||||
cp -rn /root/.gramps/grampsdb/* /config/grampsdb
|
cp -rn /root/.gramps/* /config/gramps
|
||||||
rm -rf /root/.gramps/grampsdb
|
rm -rf /root/.gramps
|
||||||
ln -sf /config/grampsdb /root/.gramps/grampsdb
|
ln -sf /config/gramps /root/.gramps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
|
|||||||
Reference in New Issue
Block a user