1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dendrite_ynh.git synced 2024-09-03 18:25:58 +02:00

Make app user belongs to ssl-cert and fix service start

This commit is contained in:
tituspijean 2023-04-20 21:50:29 +02:00
parent 59e6fda902
commit ca7bbfe85a
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
3 changed files with 9 additions and 3 deletions

View file

@ -29,7 +29,7 @@ ynh_app_config_apply() {
ynh_add_config --template="../conf/dendrite.yaml" --destination="$install_dir/dendrite.yaml" ynh_add_config --template="../conf/dendrite.yaml" --destination="$install_dir/dendrite.yaml"
ynh_add_systemd_config ynh_add_systemd_config
ynh_systemd_action --service_name=$app --action="restart" --line_match="Cleaning old notifications" --log_path="systemd" ynh_systemd_action --service_name=$app --action="restart" --line_match="Starting external listener" --log_path="systemd"
ynh_app_setting_set --app=$app --key=registration --value=$registration ynh_app_setting_set --app=$app --key=registration --value=$registration
fi fi

View file

@ -31,6 +31,12 @@ fi
ynh_app_setting_set --app=$app --key=server_name --value=$server_name ynh_app_setting_set --app=$app --key=server_name --value=$server_name
ynh_app_setting_set --app=$app --key=registration --value=$registration ynh_app_setting_set --app=$app --key=registration --value=$registration
#=================================================
# ADD USER TO THE SSL-CERT GROUP
#=================================================
usermod -a -G ssl-cert $app
#================================================= #=================================================
# CREATE A POSTGRESQL DATABASE # CREATE A POSTGRESQL DATABASE
#================================================= #=================================================
@ -145,7 +151,7 @@ yunohost service add $app --description="Dendrite Matrix homeserver" --log="/var
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --line_match="Cleaning old notifications" --log_path="systemd" ynh_systemd_action --service_name=$app --action="start" --line_match="Starting external listener" --log_path="systemd"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -152,7 +152,7 @@ yunohost service add $app --description="Dendrite Matrix homeserver" --log="/var
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --line_match="Cleaning old notifications" --log_path="systemd" ynh_systemd_action --service_name=$app --action="start" --line_match="Starting external listener" --log_path="systemd"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT