From c51a44dc2d7f4907c10e89c628af00ab3cbeb4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 6 Jun 2022 12:14:31 +0200 Subject: [PATCH] Fix --- conf/config.php | 2 +- scripts/install | 6 +++--- scripts/upgrade | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/config.php b/conf/config.php index ecbb48a..98b383e 100644 --- a/conf/config.php +++ b/conf/config.php @@ -43,7 +43,7 @@ define('MAIL_BCC', ''); define('MAIL_TRANSPORT', 'mail'); // SMTP configuration to use when the "smtp" transport is chosen -define('MAIL_SMTP_HOSTNAME', ''); +define('MAIL_SMTP_HOSTNAME', 'localhost'); define('MAIL_SMTP_PORT', 25); define('MAIL_SMTP_USERNAME', ''); define('MAIL_SMTP_PASSWORD', ''); diff --git a/scripts/install b/scripts/install index cf5e235..97b04c5 100644 --- a/scripts/install +++ b/scripts/install @@ -121,10 +121,10 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) ynh_script_progression --message="Configuring Kanboard..." dir="__DIR__" -ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php" +ynh_add_config --template="../conf/config.php" --destination="$final_path/data/config.php" -chmod 400 "$final_path/config.php" -chown $app "$final_path/config.php" +chmod 400 "$final_path/data/config.php" +chown $app "$final_path/data/config.php" #================================================= # DATABASE INITIALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 8eb4e88..10fab7c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -87,7 +87,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=3 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config.php" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/data/config.php" fi mkdir -p $final_path/sessions/