mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 17:51:49 +02:00
Update 99-run.sh
This commit is contained in:
@@ -45,27 +45,20 @@ mkdir -p "$DATA_LOCATION"
|
|||||||
echo "... setting permissions"
|
echo "... setting permissions"
|
||||||
chown -R seafile:seafile "$DATA_LOCATION"
|
chown -R seafile:seafile "$DATA_LOCATION"
|
||||||
|
|
||||||
echo "... exporting variables symlink"
|
echo "... creating symlink"
|
||||||
export SEAFILE_CONF_DIR="$DATA_LOCATION/conf"
|
dirs=("conf" "logs" "media" "seafile-data" "seahub-data" "sqlite")
|
||||||
export SEAFILE_LOGS_DIR="$DATA_LOCATION/logs"
|
for dir in "${dirs[@]}"
|
||||||
export SEAFILE_DATA_DIR="$DATA_LOCATION/seafile-data"
|
do
|
||||||
export SEAFILE_SEAHUB_DIR="$DATA_LOCATION/seahub-data"
|
mkdir -R "$DATA_LOCATION/$dir"
|
||||||
export SEAFILE_SQLITE_DIR="$DATA_LOCATION/sqlite"
|
chown -R seafile:seafile "$DATA_LOCATION/$dir"
|
||||||
export DATABASE_DIR="$DATA_LOCATION/db"
|
rm /shared/"$dir"
|
||||||
|
ln -s "$DATA_LOCATION/$dir" /shared
|
||||||
|
chown -R seafile:seafile "/shared/$dir"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
#for folder in "/conf" "/logs" "/media" "/seafile-data" "/seahub-data" "/sqlite"; do
|
echo "... correcting official script"
|
||||||
#ln -sf "$DATA_LOCATION"/media /opt/
|
sed -i "s|/shared|$DATA_LOCATION|g" /docker_entrypoint.sh
|
||||||
#
|
|
||||||
#done
|
|
||||||
|
|
||||||
#ln -sf "$DATA_LOCATION"/media /shared
|
|
||||||
|
|
||||||
#export SEAFILE_CONF_DIR="$DATA_LOCATION/conf" && sed -i "1a export SEAFILE_CONF_DIR=$DATA_LOCATION/conf" /home/seafile/*.sh
|
|
||||||
#export SEAFILE_LOGS_DIR="$DATA_LOCATION/logs" && sed -i "1a export SEAFILE_LOGS_DIR=$DATA_LOCATION/logs" /home/seafile/*.sh
|
|
||||||
#export SEAFILE_DATA_DIR="$DATA_LOCATION/seafile-data" && sed -i "1a export SEAFILE_DATA_DIR=$DATA_LOCATION/seafile-data" /home/seafile/*.sh
|
|
||||||
#export SEAFILE_SEAHUB_DIR="$DATA_LOCATION/seahub-data" && sed -i "1a export SEAFILE_SEAHUB_DIR=$DATA_LOCATION/seahub-data" /home/seafile/*.sh
|
|
||||||
#export SEAFILE_SQLITE_DIR="$DATA_LOCATION/sqlite" && sed -i "1a export SEAFILE_SQLITE_DIR=$DATA_LOCATION/sqlite" /home/seafile/*.sh
|
|
||||||
#export DATABASE_DIR="$DATA_LOCATION/db" && sed -i "1a export DATABASE_DIR=$DATA_LOCATION/db" /home/seafile/*.sh
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Define database #
|
# Define database #
|
||||||
|
|||||||
Reference in New Issue
Block a user