From 72e7df88acde19494a9116e7d4a160a6f6d4ef1f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 26 Mar 2019 22:02:39 +0100 Subject: [PATCH 1/5] Cleanup install script --- scripts/install | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index e56e461..c8da7cb 100755 --- a/scripts/install +++ b/scripts/install @@ -38,9 +38,6 @@ ynh_print_info "Validating installation parameters..." final_path=/var/www/$app test ! -e "$final_path" || ynh_die "This path already contains a folder" -# Normalize the url path syntax -path_url=$(ynh_normalize_url_path $path_url) - # Register (book) web path ynh_webpath_register $app $domain $path_url @@ -81,7 +78,7 @@ ynh_print_info "Starting mongodb ..." # Start mongodb systemctl enable mongodb -systemctl restart mongodb +systemctl start mongodb # Registering db name db_name=$(ynh_sanitize_dbid $app) @@ -90,7 +87,7 @@ ynh_app_setting_set $app db_name $db_name #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -ynh_print_info "Setting up wekan source files..." +ynh_print_info "Setting up source files..." ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src From 63afcc460ee6dfa8245c6e94d5eeb78d61a958a4 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 26 Mar 2019 22:03:01 +0100 Subject: [PATCH 2/5] remove not needed settings --- scripts/restore | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index c036dea..9a957a3 100644 --- a/scripts/restore +++ b/scripts/restore @@ -26,10 +26,8 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get $app domain) path_url=$(ynh_app_setting_get $app path) -is_public=$(ynh_app_setting_get $app is_public) final_path=$(ynh_app_setting_get $app final_path) db_name=$(ynh_app_setting_get $app db_name) -port=$(ynh_app_setting_get $app final_path) #================================================= # CHECK IF THE APP CAN BE RESTORED From d4ef2dc6b2f93f0522b38a19d6b1b6f00584660e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 26 Mar 2019 22:10:40 +0100 Subject: [PATCH 3/5] cleanup change_url script --- scripts/change_url | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 4278d43..0c0f4af 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -32,18 +32,8 @@ final_path=$(ynh_app_setting_get $app final_path) # Add settings here as needed by your application -db_name=$(ynh_app_setting_get $app db_name) port=$(ynh_app_setting_get $app port) -#================================================= -# CHECK THE SYNTAX OF THE PATHS -#================================================= - -test -n "$old_path" || old_path="/" -test -n "$new_path" || new_path="/" -new_path=$(ynh_normalize_url_path $new_path) -old_path=$(ynh_normalize_url_path $old_path) - #================================================= # CHECK WHICH PARTS SHOULD BE CHANGED #================================================= From 768a9890413e8dbd00ac154eebfc58a619034898 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 27 Mar 2019 11:13:37 +0100 Subject: [PATCH 4/5] Spelling --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b76ef2a..acc19e8 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ First registered user will be admin, and next ones normal users. If you want oth #### Multi-users support -LDAP is supported but and HTTP auth is stil not supported +LDAP is supported but HTTP auth is still not supported #### Supported architectures * x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/wekan%20%28Community%29.svg)](https://ci-apps.yunohost.org/ci/apps/wekan/) From 0ae6669c3bd7a25bc2ff47dedb51e436a57534e1 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 28 Mar 2019 01:21:28 +0100 Subject: [PATCH 5/5] Add time to start after upgrade --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index c9b23c7..ff33c5c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -177,6 +177,7 @@ systemctl reload nginx ynh_print_info "Now restarting Wekan service..." ynh_systemd_action --action=restart --service_name=$app --log_path="systemd" --line_match="Kadira: completed instrumenting the app" +sleep 10 #================================================= # END OF SCRIPT