mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 21:04:05 +02:00
Update 99-run.sh
This commit is contained in:
@@ -14,15 +14,6 @@ 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
|
||||||
|
|
||||||
for files in /app/dump.rdb; do
|
|
||||||
if [ -f "$files" ]; then
|
|
||||||
cp -n "$files" /config/"$(basename "$files")"
|
|
||||||
fi
|
|
||||||
touch /config/"$(basename "$files")"
|
|
||||||
rm -rf "$files"
|
|
||||||
ln -sf /config/"$(basename "$files")" "$files"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -d /root/.gramps/grampsdb ] && [ "$(ls -A /root/.gramps/grampsdb)" ]; then
|
if [ -d /root/.gramps/grampsdb ] && [ "$(ls -A /root/.gramps/grampsdb)" ]; then
|
||||||
mkdir -p /config/grampsdb
|
mkdir -p /config/grampsdb
|
||||||
cp -rn /root/.gramps/grampsdb/* /config/grampsdb
|
cp -rn /root/.gramps/grampsdb/* /config/grampsdb
|
||||||
@@ -55,7 +46,7 @@ fi
|
|||||||
# Starting Redis #
|
# Starting Redis #
|
||||||
##################
|
##################
|
||||||
echo "Starting Redis..."
|
echo "Starting Redis..."
|
||||||
redis-server &
|
redis-server --dbfilename redis.rdb --dir /config &
|
||||||
REDIS_PID=$!
|
REDIS_PID=$!
|
||||||
|
|
||||||
###############
|
###############
|
||||||
|
|||||||
Reference in New Issue
Block a user