From 72617527a0304b981fa709c92f0a507654e732b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:01:21 +0100 Subject: [PATCH] cleaning --- conf/config.inc.php | 8 ++++---- scripts/install | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/config.inc.php b/conf/config.inc.php index ea0e321..b226b97 100644 --- a/conf/config.inc.php +++ b/conf/config.inc.php @@ -296,10 +296,10 @@ $conf['fs_quick_check_period'] = 24*60*60; $conf['send_bcc_mail_webmaster'] = false; // define the name of sender mail: if value is empty, gallery title is used -$conf['mail_sender_name'] = ''; +$conf['mail_sender_name'] = '__APP__'; // define the email of sender mail: if value is empty, webmaster email is used -$conf['mail_sender_email'] = ''; +$conf['mail_sender_email'] = '__APP__@__DOMAIN__'; // set true to allow text/html emails $conf['mail_allow_html'] = true; @@ -831,12 +831,12 @@ $conf['light_slideshow'] = true; // the local data directory is used to store data such as compiled templates, // plugin variables, combined css/javascript or resized images. Beware of // mandatory trailing slash. -$conf['data_location'] = '_data/'; +$conf['data_location'] = '__DATA_DIR__/_data/'; // where should the API/UploadForm add photos? This path must be relative to // the Piwigo installation directory (but can be outside, as long as it's // reachable from your webserver). -$conf['upload_dir'] = './upload'; +$conf['upload_dir'] = '__DATA_DIR__/upload'; // where should the user be guided when there is no photo in his gallery yet? $conf['no_photo_yet_url'] = 'admin.php?page=photos_add'; diff --git a/scripts/install b/scripts/install index b3d1723..bc59eb9 100644 --- a/scripts/install +++ b/scripts/install @@ -89,10 +89,10 @@ ynh_local_curl "/install.php?language=$applanguage" "install=true" "dbhost=127.0 ynh_script_progression --message="Configuring Piwigo..." # Change local config -ynh_add_config --template="../conf/config.inc.php" --destination="$install_dir/local/config/config.inc.php" +ynh_add_config --template="config.inc.php" --destination="$install_dir/local/config/config.inc.php" # Setup database in local/config/database.inc.php -ynh_add_config --template="../conf/database.inc.php" --destination="$install_dir/local/config/database.inc.php" +ynh_add_config --template="database.inc.php" --destination="$install_dir/local/config/database.inc.php" chmod 750 "$install_dir" chmod -R o-rwx "$install_dir"