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:
parent
a4845c8445
commit
e4eab92688
3 changed files with 6 additions and 3 deletions
|
@ -220,7 +220,8 @@ ynh_store_file_checksum --file="$final_path/config/config.inc.php"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# 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"
|
mkdir -p "$final_path/plugins/enigma/home"
|
||||||
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,8 @@ ynh_restore_file --origin_path="$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore permissions on app files
|
# 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"
|
mkdir -p "$final_path/plugins/enigma/home"
|
||||||
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
||||||
|
|
||||||
|
|
|
@ -270,7 +270,8 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# 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"
|
mkdir -p "$final_path/plugins/enigma/home"
|
||||||
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue