1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dont-code_ynh.git synced 2024-09-03 18:26:34 +02:00

Fix upgrade permissions of data_dir

This commit is contained in:
Salamandar 2024-01-05 15:06:01 +01:00
parent c0d1067795
commit dd69364d91
3 changed files with 6 additions and 4 deletions

View file

@ -63,6 +63,8 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
[resources.data_dir] [resources.data_dir]
subdirs = ["docs"] subdirs = ["docs"]
owner = "__APP__:rwx"
group = "www-data:rwx"
[resources.permissions] [resources.permissions]
main.url = "/" main.url = "/"

View file

@ -33,8 +33,8 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory
mkdir -p $document_path mkdir -p $document_path
chmod -R o-rwx "$html_path" chmod -R o-rwx "$data_dir"
chown -R $app:www-data "$html_path" chown -R $app:www-data "$data_dir"
#================================================= #=================================================
# ADD SSH ACCESS # ADD SSH ACCESS

View file

@ -82,8 +82,8 @@ ynh_script_progression --message="Configuring document storage..." --weight=1
ynh_add_config --template="index.html" --destination="$data_dir/index.html" ynh_add_config --template="index.html" --destination="$data_dir/index.html"
chmod o-rwx "$data_dir/index.html" chmod o-rwx "$data_dir"
chown "$app:www-data" "$data_dir/index.html" chown "$app:www-data" "$data_dir"
#================================================= #=================================================
# ADD SSH ACCESS # ADD SSH ACCESS