mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-27 00:04:17 +00:00
Update 99-run.sh
This commit is contained in:
1 parent
2cffe897ed
commit
2faa0cff24
1 file changed
+1
-2
@@ -47,7 +47,7 @@ chown -R seafile:seafile "$DATA_LOCATION"
|
||||
|
||||
echo "... copy media files"
|
||||
cp -rnf /opt/seafile/media/* "$DATA_LOCATION"/media
|
||||
rm -r /shared/media
|
||||
rm -r /shared/media || true
|
||||
|
||||
echo "... creating symlink"
|
||||
dirs=("conf" "logs" "media" "seafile-data" "seahub-data" "sqlite")
|
||||
@@ -55,7 +55,6 @@ for dir in "${dirs[@]}"
|
||||
do
|
||||
mkdir -p "$DATA_LOCATION/$dir"
|
||||
chown -R seafile:seafile "$DATA_LOCATION/$dir"
|
||||
if [ -d /shared/"$dir" ]; then rm /shared/"$dir"; fi
|
||||
ln -s "$DATA_LOCATION/$dir" /shared
|
||||
done
|
||||
|
||||
|
||||
Reference in new issue
Block a user