1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/osticket_ynh.git synced 2024-09-03 19:56:17 +02:00

Fix rights

This commit is contained in:
yalh76 2021-04-11 22:26:11 +02:00
parent f66f0a9288
commit 01c9f34d56
3 changed files with 10 additions and 10 deletions

View file

@ -103,7 +103,7 @@ ynh_setup_source --dest_dir="$final_path/include/plugins/build/preventautoscroll
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path" chown -R $app:$app "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -124,6 +124,13 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
# SPECIFIC SETUP # SPECIFIC SETUP
#=================================================
# SET THE CRON FILE
#=================================================
ynh_script_progression --message="Setting the cron file..."
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION
#================================================= #=================================================
@ -195,13 +202,6 @@ ynh_permission_update --permission="main" --remove="visitors"
ynh_secure_remove --file="$final_path/setup" ynh_secure_remove --file="$final_path/setup"
#=================================================
# SET THE CRON FILE
#=================================================
ynh_script_progression --message="Setting the cron file..."
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -70,7 +70,7 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path" chown -R $app:$app "$final_path"
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION

View file

@ -105,7 +105,7 @@ fi
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R root:$app "$final_path" chown -R $app:$app "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION