diff --git a/manifest.json b/manifest.json index bb0516b..93d9994 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ "id": "mattermost", "packaging_format": 1, "description": { - "en": "An open-source, self-hosted alternative to Slack", - "fr": "Une alternative open-source et auto-hébergée à Slack" + "en": "Open source collaboration platform built for developers", + "fr": "Plateforme de collaboration open source conçue pour les développeurs" }, "version": "5.30.1~ynh1", "url": "http://www.mattermost.org/", diff --git a/scripts/_common.sh b/scripts/_common.sh index d0be5f5..7401a47 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,9 +4,6 @@ # COMMON VARIABLES #================================================= -# dependencies used by the app -#pkg_dependencies="postgresql postgresql-contrib" - #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index e79d902..994719b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -45,12 +45,18 @@ if [[ $is_public == "Yes" ]]; then elif [[ $is_public == "No" ]]; then is_public=0 fi -ynh_app_setting_set "$app" is_public "$is_public" +ynh_app_setting_set --app=$app --key=is_public --value=$is_public # Save the port used if not present if ! [[ "$port" ]]; then port=8065 - ynh_app_setting_set "$app" port "$port" + ynh_app_setting_set --app=$app --key=port --value=$port +fi + +# Language if not present +if ! [[ "$language" ]]; then + language="en" + ynh_app_setting_set --app=$app --key=language --value=$language fi #================================================= @@ -111,13 +117,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# INSTALL DEPENDENCIES -#================================================= -#ynh_script_progression --message="Installing dependencies..." --weight=10 - -#ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies - #================================================= # SETUP SYSTEMD #=================================================