diff --git a/manifest.json b/manifest.json index 06ae1bc..1be650c 100644 --- a/manifest.json +++ b/manifest.json @@ -44,14 +44,18 @@ "name": "admin", "type": "user" }, - { - "name": "is_public", - "type": "boolean", - "default": true - }, { "name": "password", "type": "password" + }, + { + "name": "is_public", + "type": "boolean", + "help": { + "en": "If enabled, RocketChat will be accessible by people who do not have an account. This can be changed later via the webadmin.", + "fr": "Si cette case est cochée, RocketChat sera accessible aux personnes n’ayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin." + }, + "default": true } ] } diff --git a/scripts/change_url b/scripts/change_url index 538ca2b..76b4138 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -70,7 +70,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # MODIFY URL IN NGINX CONF @@ -108,7 +108,7 @@ fi #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # RELOAD NGINX diff --git a/scripts/install b/scripts/install index 6deff82..b416a64 100644 --- a/scripts/install +++ b/scripts/install @@ -132,8 +132,7 @@ popd #================================================= 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" - +env_path="$PATH" ynh_add_systemd_config #================================================= @@ -175,15 +174,15 @@ ynh_script_progression --message="Starting a MongoDB service..." --weight=2 # Start a mongod service ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet -ynh_systemd_action --service_name=$mongodb_servicename --action=restart +ynh_systemd_action --service_name=$mongodb_servicename --action="restart" #================================================= # START SYSTEMD SERVICE #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=2 -ynh_systemd_action --service_name=$app --action=start --log_path=systemd -sleep 100 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +sleep 60 #================================================= # SETUP SSOWAT diff --git a/scripts/remove b/scripts/remove index 3e8bd12..8c4db16 100644 --- a/scripts/remove +++ b/scripts/remove @@ -86,7 +86,7 @@ fi #================================================= ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1 -# Remove the dedicated nginx config +# Remove the dedicated NGINX config ynh_remove_nginx_config #================================================= diff --git a/scripts/restore b/scripts/restore index 67696c2..8162414 100644 --- a/scripts/restore +++ b/scripts/restore @@ -132,15 +132,15 @@ ynh_script_progression --message="Starting a MongoDB service..." --weight=2 # Start a mongod service ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet -ynh_systemd_action --service_name=$mongodb_servicename --action=restart +ynh_systemd_action --service_name=$mongodb_servicename --action="restart" #================================================= # START SYSTEMD SERVICE #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=5 -ynh_systemd_action --service_name=$app --action="start" --log_path=systemd -sleep 120 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +sleep 60 #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 2e10976..28e37e6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -71,7 +71,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # CREATE DEDICATED USER @@ -130,8 +130,7 @@ popd #================================================= ynh_script_progression --message="Upgrading systemd configuration..." --weight=2 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - +env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config @@ -144,7 +143,7 @@ sed -i "s/^# engine:/ engine: wiredTiger/" /etc/mongod.conf sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/mongod.conf ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet -ynh_systemd_action --service_name=$mongodb_servicename --action=restart +ynh_systemd_action --service_name=$mongodb_servicename --action="restart" sleep 10 @@ -170,9 +169,9 @@ yunohost service add $app --description="Team collaboration communication platfo #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=10 -ynh_systemd_action --service_name=$mongodb_servicename --action=restart --log_path=systemd -ynh_systemd_action --service_name=$app --action=start --log_path=systemd -sleep 100 +ynh_systemd_action --service_name=$mongodb_servicename --action="restart" --log_path="systemd" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" +sleep 60 #================================================= # RELOAD NGINX