diff --git a/scripts/install b/scripts/install index e05e750..9251be4 100755 --- a/scripts/install +++ b/scripts/install @@ -110,11 +110,13 @@ chmod -R g+w $final_path/translations/ #================================================= 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="__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="__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="__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" diff --git a/scripts/upgrade b/scripts/upgrade index 2444e21..71e3e22 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,7 +109,15 @@ ynh_add_fpm_config --package="$extra_php_dependencies" # Set permissions to app files 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