From 50510fba45cd34c81b1dc63143dfd2d78366caaa Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Wed, 27 Feb 2019 11:44:26 +0100 Subject: [PATCH] add comments and condition on fail login --- scripts/install | 108 +++++++++++++++++++++++++----------------------- 1 file changed, 57 insertions(+), 51 deletions(-) diff --git a/scripts/install b/scripts/install index 23cfdb8..9946f34 100644 --- a/scripts/install +++ b/scripts/install @@ -57,6 +57,7 @@ ynh_webpath_register "$app" "$domain" "$path_url" #================================================= # STORE SETTINGS FROM MANIFEST #================================================= +ynh_print_info "Get infos from manifest" ynh_app_setting_set "$app" domain "$domain" ynh_app_setting_set "$app" path "$path_url" @@ -94,6 +95,7 @@ ynh_app_setting_set "$app" language "$language" ### - Remove the section "REMOVE DEPENDENCIES" in the remove script ### - As well as the section "REINSTALL DEPENDENCIES" in the restore script ### - And the section "UPGRADE DEPENDENCIES" in the upgrade script +ynh_print_info "Install dependencies" wget "https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-release_4.0-2+stretch_all.deb" dpkg -i zabbix-release_*.deb @@ -123,6 +125,7 @@ rm "$final_path/conf/zabbix.conf.php" #================================================= # CREATE A MYSQL DATABASE #================================================= +ynh_print_info "Create and add default data in db" ### Use these lines if you need a database for the application. ### `ynh_mysql_setup_db` will create a database, an associated user and a ramdom password. @@ -187,6 +190,8 @@ ynh_app_setting_set "$app" final_path "$final_path" # Download, check integrity, uncompress and patch the source from app.src #ynh_setup_source "$final_path" +ynh_print_info "Generate web config" + #================================================= # NGINX CONFIGURATION #================================================= @@ -273,18 +278,13 @@ systemctl reload nginx # Installation with curl #ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3" -# Remove the public access -if [ "$is_public" -eq 0 ] -then - ynh_app_setting_delete "$app" skipped_uris -fi - #================================================= # MODIFY A CONFIG FILE #================================================= ### `ynh_replace_string` is used to replace a string in a file. ### (It's compatible with sed regular expressions syntax) +ynh_print_info "Generate zabbix config files" echo "