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:
parent
c0d1067795
commit
dd69364d91
3 changed files with 6 additions and 4 deletions
|
@ -63,6 +63,8 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
|
|||
|
||||
[resources.data_dir]
|
||||
subdirs = ["docs"]
|
||||
owner = "__APP__:rwx"
|
||||
group = "www-data:rwx"
|
||||
|
||||
[resources.permissions]
|
||||
main.url = "/"
|
||||
|
|
|
@ -33,8 +33,8 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
|||
|
||||
mkdir -p $document_path
|
||||
|
||||
chmod -R o-rwx "$html_path"
|
||||
chown -R $app:www-data "$html_path"
|
||||
chmod -R o-rwx "$data_dir"
|
||||
chown -R $app:www-data "$data_dir"
|
||||
|
||||
#=================================================
|
||||
# ADD SSH ACCESS
|
||||
|
|
|
@ -82,8 +82,8 @@ ynh_script_progression --message="Configuring document storage..." --weight=1
|
|||
|
||||
ynh_add_config --template="index.html" --destination="$data_dir/index.html"
|
||||
|
||||
chmod o-rwx "$data_dir/index.html"
|
||||
chown "$app:www-data" "$data_dir/index.html"
|
||||
chmod o-rwx "$data_dir"
|
||||
chown "$app:www-data" "$data_dir"
|
||||
|
||||
#=================================================
|
||||
# ADD SSH ACCESS
|
||||
|
|
Loading…
Reference in a new issue