From 97d118a6a10385baf3f5c7a543522cac4cdad9ef Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 24 Nov 2018 22:31:17 +0100 Subject: [PATCH 1/6] Correct exemple.fr exemple.com --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 300a555..0e1820b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -54,6 +54,8 @@ if [[ $?==0 ]]; then #replace old conf and process with install command mv $final_path/conf.php $final_path/conf.php.old mv $final_path/conf-dist.new.php $final_path/conf.php + ynh_replace_string "exemple.fr" "$domain" $final_path/conf.php + ynh_replace_string "exemple.com" "$domain" $final_path/conf.php ynh_replace_string "define('DB', 'sqlite:'" "//define('DB', 'sqlite:'" $final_path/conf.php ynh_replace_string "define('ALIASLIMITBYMAIL" "//define('ALIASLIMITBYMAIL" $final_path/conf.php #setting conf file not world-readable (dude, there is a plain-text password !) From be78919de8804f6650ba13ccf11973b34e2aeca5 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 25 Nov 2018 14:45:21 +0100 Subject: [PATCH 2/6] set mysqlpwd in app settings --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index 6f97b87..6b2ebea 100644 --- a/scripts/install +++ b/scripts/install @@ -82,6 +82,7 @@ ln -s $final_path/lang/it $final_path/lang/it_IT #generating random password for database db_pwd=$(ynh_string_random) +ynh_app_setting_set $app mysqlpwd $db_pwd #configuring with given settings sudo cp $final_path/conf-dist.php $final_path/conf.php From a55cff9432029292d4f06125188d64a5f0202dfc Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 25 Nov 2018 16:30:14 +0100 Subject: [PATCH 3/6] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 6b2ebea..ee206ed 100644 --- a/scripts/install +++ b/scripts/install @@ -16,7 +16,7 @@ domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN password=$YNH_APP_ARG_PASSWORD -is_public=$4 +is_public=$5 final_path=/var/www/$app db_user=emailPoubelle postfix=/etc/postfix/main.cf From 26b431a84df919459f84e795b815b906e5cb071e Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 25 Nov 2018 16:32:37 +0100 Subject: [PATCH 4/6] backup and restore script --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb1d35c..457950f 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ TODO : [X] Implement Admin panel -[ ] Add backup restore script +[X] Add backup restore script [ ] check checksum on download From 9220c35507ef18ebdef82449d31c459be9fda72e Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 25 Nov 2018 16:32:53 +0100 Subject: [PATCH 5/6] cancel --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 457950f..eb1d35c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ TODO : [X] Implement Admin panel -[X] Add backup restore script +[ ] Add backup restore script [ ] check checksum on download From 6c59fc5f670f0716b6e2381f255d3be93316e518 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 2 Apr 2019 16:48:46 +0200 Subject: [PATCH 6/6] spelling correction --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index eb310aa..a6617f8 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,7 @@ "version": "2.0~ynh3", "license": "Beerware", "maintainer": { - "name": "krakinou", + "name": "Krakinou", "email": "misterl56@hotmail.com" }, "requirements": {