1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fittrackee_ynh.git synced 2024-09-03 18:36:16 +02:00

Add datadir for images

This commit is contained in:
Éric Gaspar 2023-01-17 21:53:23 +01:00
parent 6820247425
commit 14ef5a7dab
3 changed files with 3 additions and 2 deletions

View file

@ -15,7 +15,7 @@ DEFAULT_LANGUAGE="English"
## Leave unset to allow all hosts
ALLOWED_HOSTS="localhost,127.0.0.1,[::1]"
MEDIA_ROOT=images/
MEDIA_ROOT=__DATADIR__/images/
# Database configuration
PGPORT=5432

View file

@ -8,7 +8,7 @@ location __PATH__/ {
}
location /images/ {
alias __FINALPATH__/images/;
alias __DATADIR__/images/;
}
location /static/ {

View file

@ -153,6 +153,7 @@ datadir=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
mkdir -p $datadir
mkdir -p $datadir/images
chmod 750 "$datadir"
chmod -R o-rwx "$datadir"