1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautic_ynh.git synced 2024-09-03 19:36:26 +02:00
This commit is contained in:
ericgaspar 2021-03-17 18:03:24 +01:00
parent 6443aa0d3f
commit 04bddfbec5
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 15 additions and 5 deletions

View file

@ -110,11 +110,13 @@ chmod -R g+w $final_path/translations/
#================================================= #=================================================
ynh_script_progression --message="Setuping a cron..." ynh_script_progression --message="Setuping a cron..."
cp ../conf/cron /etc/cron.d/$app # cp ../conf/cron /etc/cron.d/$app
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="/etc/cron.d/$app" # ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="/etc/cron.d/$app"
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app" # ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion" --target_file="/etc/cron.d/$app"
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app" # ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/etc/cron.d/$app"
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app"

View file

@ -109,7 +109,15 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app: $final_path
chmod -R 755 $final_path # Set permissions to app files
chown -R $app:www-data $final_path
#chmod -R g+w $final_path/app/cache/
#chmod -R g+w $final_path/app/logs/
chmod -R g+w $final_path/app/config/
chmod -R g+w $final_path/media/files/
chmod -R g+w $final_path/media/images/
chmod -R g+w $final_path/translations/
#chmod -R 755 $final_path
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX