From 0095d3750acb7fd86829563762469822c9991ec5 Mon Sep 17 00:00:00 2001 From: dragondaddy Date: Mon, 29 Jan 2024 20:34:22 +0100 Subject: [PATCH] We need a new config file --- conf/htconfig.sample.php | 2 +- scripts/upgrade | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/htconfig.sample.php b/conf/htconfig.sample.php index ee13b529..002c0390 100644 --- a/conf/htconfig.sample.php +++ b/conf/htconfig.sample.php @@ -88,7 +88,7 @@ App::$config['system']['directory_mode'] = DIRECTORY_MODE_NORMAL; // or change the name (below) to a file/path where this is allowed. // Uncomment the following 4 lines to turn on PHP error logging. -error_reporting(E_ERROR | E_WARNING | E_PARSE ); +error_reporting(E_ERROR | E_PARSE ); ini_set('error_log','php.log'); ini_set('log_errors','1'); ini_set('display_errors', '0'); diff --git a/scripts/upgrade b/scripts/upgrade index 785af7fd..a6283bd0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,7 +82,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="store/ .htconfig.php php.log" + ynh_setup_source --dest_dir="$install_dir" --keep="store/ php.log" ynh_setup_source --dest_dir="$install_dir/addon" --source_id="addons" fi @@ -109,14 +109,14 @@ ynh_add_nginx_config #================================================= # UPDATE A CONFIG FILE #================================================= -# ynh_script_progression --message="Updating a configuration file..." --weight=1 +ynh_script_progression --message="Updating a configuration file..." --weight=1 -# ynh_add_config --template="htconfig.sample.php" --destination="$install_dir/.htconfig.php" +ynh_add_config --template="htconfig.sample.php" --destination="$install_dir/.htconfig.php" -# ynh_store_file_checksum --file=$install_dir/.htconfig.php +ynh_store_file_checksum --file=$install_dir/.htconfig.php -# chmod 600 "$install_dir/.htconfig.php" -# chown $app:$app "$install_dir/.htconfig.php" +chmod 600 "$install_dir/.htconfig.php" +chown $app:$app "$install_dir/.htconfig.php" #================================================= # UPGRADE CRON JOB