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/