2021-07-10 17:59:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2024-01-28 14:40:00 +01:00
|
|
|
_ynh_add_gemserv_config() {
|
|
|
|
ynh_add_config --template="server.toml" --destination="/etc/gemserv/config.d/$domain.toml"
|
|
|
|
ynh_systemd_action --service_name=gemserv --action=reload
|
|
|
|
}
|
|
|
|
|
|
|
|
_ynh_remove_gemserv_config() {
|
|
|
|
ynh_secure_remove --file="/etc/gemserv/config.d/$domain.toml"
|
|
|
|
ynh_systemd_action --service_name=gemserv --action=reload
|
|
|
|
}
|
|
|
|
|
2021-07-10 17:59:22 +02:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|