1
0
Fork 0
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:
ericgaspar 2021-09-25 13:16:23 +02:00
parent f33b471447
commit c054168ae6
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 8 additions and 2 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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"