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:
parent
6820247425
commit
14ef5a7dab
3 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,7 @@ DEFAULT_LANGUAGE="English"
|
||||||
## Leave unset to allow all hosts
|
## Leave unset to allow all hosts
|
||||||
ALLOWED_HOSTS="localhost,127.0.0.1,[::1]"
|
ALLOWED_HOSTS="localhost,127.0.0.1,[::1]"
|
||||||
|
|
||||||
MEDIA_ROOT=images/
|
MEDIA_ROOT=__DATADIR__/images/
|
||||||
|
|
||||||
# Database configuration
|
# Database configuration
|
||||||
PGPORT=5432
|
PGPORT=5432
|
||||||
|
|
|
@ -8,7 +8,7 @@ location __PATH__/ {
|
||||||
}
|
}
|
||||||
|
|
||||||
location /images/ {
|
location /images/ {
|
||||||
alias __FINALPATH__/images/;
|
alias __DATADIR__/images/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /static/ {
|
location /static/ {
|
||||||
|
|
|
@ -153,6 +153,7 @@ datadir=/home/yunohost.app/$app
|
||||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||||
|
|
||||||
mkdir -p $datadir
|
mkdir -p $datadir
|
||||||
|
mkdir -p $datadir/images
|
||||||
|
|
||||||
chmod 750 "$datadir"
|
chmod 750 "$datadir"
|
||||||
chmod -R o-rwx "$datadir"
|
chmod -R o-rwx "$datadir"
|
||||||
|
|
Loading…
Reference in a new issue