1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00
This commit is contained in:
ericgaspar 2021-06-07 16:56:26 +02:00
parent c84be4b8fc
commit 6411872e9d
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 5 additions and 35 deletions

View file

@ -1,7 +0,0 @@
language: node_js
before_install:
- git clone https://github.com/YunoHost/package_linter /tmp/package_linter
script:
- /tmp/package_linter/package_linter.py ./

View file

@ -1,17 +1,11 @@
# See here for more information
# https://github.com/YunoHost/package_check#syntax-check_process-file
# Move this file from check_process.default to check_process when you have filled it.
;; Test complet ;; Test complet
; Manifest ; Manifest
domain="domain.tld" (DOMAIN) domain="domain.tld"
path="/path" (PATH) path="/path"
admin="john" (USER) admin="john"
language="fr" language="fr"
is_public=1 (PUBLIC|public=1|private=0) is_public=1
password="pass" password="pass"
port="666" (PORT)
; Checks ; Checks
pkg_linter=1 pkg_linter=1
setup_sub_dir=1 setup_sub_dir=1

View file

@ -19,45 +19,29 @@
"nginx" "nginx"
], ],
"requirements": { "requirements": {
"yunohost": ">> 4.1.7" "yunohost": ">> 4.2.4"
}, },
"arguments": { "arguments": {
"install" : [ "install" : [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain",
"ask": {
"en": "Choose a domain for RocketChat",
"fr": "Choose a domain for RocketChat"
},
"example": "domain.org" "example": "domain.org"
}, },
{ {
"name": "path", "name": "path",
"type": "path", "type": "path",
"ask": {
"en": "Choose a path for RocketChat",
"fr": "Choose a path for RocketChat"
},
"example": "/rocketchat", "example": "/rocketchat",
"default": "/rocketchat" "default": "/rocketchat"
}, },
{ {
"name": "is_public", "name": "is_public",
"type": "boolean", "type": "boolean",
"ask": {
"en": "Is it a public application?",
"fr": "Is it a public application ?"
},
"default": true "default": true
}, },
{ {
"name": "language", "name": "language",
"type": "string", "type": "string",
"ask": {
"en": "Select default language",
"fr": "Select default language"
},
"choices": ["English"], "choices": ["English"],
"default": "English" "default": "English"
} }

View file

@ -139,7 +139,6 @@ popd || ynh_die
ynh_script_progression --message="Configuring a systemd service..." --weight=1 ynh_script_progression --message="Configuring a systemd service..." --weight=1
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service"
ynh_add_systemd_config ynh_add_systemd_config