mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
Set rights
This commit is contained in:
parent
f33b471447
commit
c054168ae6
3 changed files with 8 additions and 2 deletions
|
@ -215,7 +215,9 @@ ynh_store_file_checksum --file="$final_path/htdocs/conf/conf.php"
|
|||
|
||||
# Set permissions on app files
|
||||
chmod 750 "$final_path"
|
||||
chown -R $app: "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
chmod 644 "$final_path/htdocs/conf/conf.php"
|
||||
mkdir -p "$datadir"
|
||||
chown -R $app: "$datadir"
|
||||
|
|
|
@ -100,6 +100,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
|||
#=================================================
|
||||
|
||||
# Set permissions on app files
|
||||
chmod 750 "$final_path"
|
||||
chown -R $app: "$final_path"
|
||||
chmod 644 "$final_path/htdocs/conf/conf.php"
|
||||
mkdir -p "$datadir"
|
||||
|
|
|
@ -249,7 +249,10 @@ ynh_replace_string --match_string="__SRCPATH__" --replace_string="$final_path" -
|
|||
#=================================================
|
||||
|
||||
# Set permissions on app files
|
||||
chown -R $app: "$final_path"
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
chmod 644 "$final_path/htdocs/conf/conf.php"
|
||||
mkdir -p "$datadir"
|
||||
chown -R $app: "$datadir"
|
||||
|
|
Loading…
Reference in a new issue