1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

Permissions

This commit is contained in:
ericgaspar 2021-05-07 23:28:44 +02:00
parent a4845c8445
commit e4eab92688
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 6 additions and 3 deletions

View file

@ -220,7 +220,8 @@ ynh_store_file_checksum --file="$final_path/config/config.inc.php"
#=================================================
# Set permissions to app files
chown -R root: "$final_path"
chown -R root:$app "$final_path"
chmod -R o-rwx "$final_path"
mkdir -p "$final_path/plugins/enigma/home"
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}

View file

@ -68,7 +68,8 @@ ynh_restore_file --origin_path="$final_path"
#=================================================
# Restore permissions on app files
chown -R root: "$final_path"
chown -R root:$app "$final_path"
chmod -R o-rwx "$final_path"
mkdir -p "$final_path/plugins/enigma/home"
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}

View file

@ -270,7 +270,8 @@ fi
#=================================================
# Set permissions to app files
chown -R root: "$final_path"
chown -R root:$app "$final_path"
chmod -R o-rwx "$final_path"
mkdir -p "$final_path/plugins/enigma/home"
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}