mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-14 19:41:31 +02:00
Update 99-run.sh
This commit is contained in:
@@ -12,14 +12,16 @@ bashio::log.warning "Warning : a custom data location was selected, but the prev
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create folder
|
# Create folder
|
||||||
echo "Creating $LOCATION"
|
if [ ! -d "$LOCATION" ]; then
|
||||||
mkdir -p "$LOCATION"
|
echo "Creating $LOCATION"
|
||||||
if [ ! -f "$LOCATION"/database.sqlite ]; then
|
mkdir -p "$LOCATION"
|
||||||
cp /home/joplin/packages/server/db-prod.sqlite "$LOCATION"/database.sqlite
|
|
||||||
fi
|
fi
|
||||||
#touch "$LOCATION"/database.sqlite
|
|
||||||
|
|
||||||
mkdir -p "$LOCATION"/resources
|
touch "$LOCATION"/database.sqlite
|
||||||
|
|
||||||
|
if [ ! -d "$LOCATION"/resources ]; then
|
||||||
|
mkdir -p "$LOCATION"/resources
|
||||||
|
fi
|
||||||
ln -s $LOCATION/resources /home/joplin/packages/server
|
ln -s $LOCATION/resources /home/joplin/packages/server
|
||||||
|
|
||||||
chown -R joplin:joplin "$LOCATION"
|
chown -R joplin:joplin "$LOCATION"
|
||||||
|
|||||||
Reference in New Issue
Block a user