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:
parent
59e6fda902
commit
ca7bbfe85a
3 changed files with 9 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue