1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00

Merge pull request #43 from YunoHost-Apps/testing

Update permissions
This commit is contained in:
mastereur 2020-12-29 19:50:03 +01:00 committed by GitHub
commit 070c97a1ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View file

@ -6,7 +6,7 @@
"en": "Manage the various aspects of your business or association (contacts, invoices, orders, stocks, agenda, etc...).", "en": "Manage the various aspects of your business or association (contacts, invoices, orders, stocks, agenda, etc...).",
"fr": "Gérez les différents aspects de votre activité pro ou associative (contacts, factures, commandes, stocks, agenda, etc...)." "fr": "Gérez les différents aspects de votre activité pro ou associative (contacts, factures, commandes, stocks, agenda, etc...)."
}, },
"version": "12.0.3~ynh1", "version": "12.0.3~ynh2",
"url": "https://www.dolibarr.org/", "url": "https://www.dolibarr.org/",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"maintainer": { "maintainer": {

View file

@ -232,7 +232,7 @@ ynh_store_file_checksum --file="$final_path/htdocs/conf/conf.php"
#================================================= #=================================================
# Set permissions on app files # Set permissions on app files
chown -R root: "$final_path" chown -R $app: "$final_path"
chmod 644 "$final_path/htdocs/conf/conf.php" chmod 644 "$final_path/htdocs/conf/conf.php"
mkdir -p "$datadir" mkdir -p "$datadir"
chown -R $app: "$datadir" chown -R $app: "$datadir"
@ -257,6 +257,8 @@ then
ynh_permission_update --permission "main" --add "visitors" ynh_permission_update --permission "main" --add "visitors"
fi fi
ynh_permission_create --permission "public access" --url "/public/" --allowed "visitors"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================

View file

@ -106,7 +106,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#================================================= #=================================================
# Set permissions on app files # Set permissions on app files
chown -R root: "$final_path" chown -R $app: "$final_path"
chmod 644 "$final_path/htdocs/conf/conf.php" chmod 644 "$final_path/htdocs/conf/conf.php"
mkdir -p "$datadir" mkdir -p "$datadir"
chown -R $app: "$datadir" chown -R $app: "$datadir"

View file

@ -215,7 +215,7 @@ ynh_use_logrotate --non-append
#================================================= #=================================================
# Set permissions on app files # Set permissions on app files
chown -R root: "$final_path" chown -R $app: "$final_path"
chmod 644 "$final_path/htdocs/conf/conf.php" chmod 644 "$final_path/htdocs/conf/conf.php"
mkdir -p "$datadir" mkdir -p "$datadir"
chown -R $app: "$datadir" chown -R $app: "$datadir"
@ -233,6 +233,8 @@ then
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" ynh_app_setting_set --app=$app --key=unprotected_uris --value="/"
fi fi
ynh_permission_create --permission "public access" --url "/public/" --allowed "visitors"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================