diff --git a/manifest.json b/manifest.json index 3f3ebb5..dbc707e 100644 --- a/manifest.json +++ b/manifest.json @@ -33,29 +33,17 @@ { "name": "domain", "type": "domain", - "ask": { - "en": "Choose a domain for Mattermost", - "fr": "Choisissez un domaine pour Mattermost" - }, "example": "domain.org" }, { "name": "path", "type": "path", - "ask": { - "en": "Choose a path for Mattermost", - "fr": "Choisissez un chemin pour Mattermost" - }, "example": "/mattermost", "default": "/chat" }, { "name": "is_public", "type": "boolean", - "ask": { - "en": "Is it a public application?", - "fr": "Est-ce une application publique ?" - }, "help": { "en": "If enabled, Mattermost will be accessible by the user without a YunoHost account. This can be changed later via the webadmin.", "fr": "Si cette case est cochée, Mattermost sera accessible par l'utilisateur sans compte YunoHost. Vous pourrez changer ceci plus tard via l’interface d’administration." @@ -65,19 +53,11 @@ { "name": "admin", "type": "user", - "ask": { - "en": "Choose an admin user", - "fr": "Choisissez l'administrateur" - }, "example": "johndoe" }, { "name": "password", "type": "password", - "ask": { - "en": "Set the administrator password", - "fr": "Définissez le mot de passe administrateur" - }, "example": "Choose a password" }, { diff --git a/scripts/_common.sh b/scripts/_common.sh index 7916409..4dd6f6b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -38,21 +38,6 @@ ynh_detect_arch(){ echo $architecture } - #================================================= # FUTURE OFFICIAL HELPERS #================================================= - -# Execute a command as another user -# usage: ynh_exec_as USER COMMAND [ARG ...] -ynh_exec_as() { - local USER=$1 - shift 1 - - if [[ $USER = $(whoami) ]]; then - eval "$@" - else - sudo -u "$USER" "$@" - fi -} -