mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
Fix
This commit is contained in:
parent
4fc6c6e6b0
commit
a1ae3118fc
5 changed files with 23 additions and 23 deletions
|
@ -4,8 +4,8 @@ Requires=network-online.target
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=__APP__
|
User=mumble-server
|
||||||
Group=__APP__
|
Group=mumble-server
|
||||||
Type=forking
|
Type=forking
|
||||||
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
|
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
|
||||||
RuntimeDirectory=mumble-server
|
RuntimeDirectory=mumble-server
|
||||||
|
|
|
@ -113,7 +113,7 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chmod -R 770 "$final_path"
|
chmod -R 770 "$final_path"
|
||||||
chown -R :$app "$final_path"
|
chown -R :mumble-server "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Add user to ssl-cert so it can read certificates
|
# Add user to ssl-cert so it can read certificates
|
||||||
|
@ -134,7 +134,7 @@ murmurd -ini "$mumble_conf" -supw "$su_passwd" "$instance_id" || true
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
systemctl stop $app
|
systemctl stop $app
|
||||||
systemctl disable $app
|
systemctl disable $app --quiet
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
|
|
|
@ -15,9 +15,9 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
port=$(ynh_app_setting_get "$app" port)
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
final_path=$(ynh_app_setting_get "$app" final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD REMOVE
|
# STANDARD REMOVE
|
||||||
|
|
|
@ -80,7 +80,7 @@ yunohost service add "$app" -l "/var/log/mumble-server/$app.log"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_restore_file "/etc/systemd/system/$app.service"
|
ynh_restore_file "/etc/systemd/system/$app.service"
|
||||||
systemctl enable "$app.service"
|
systemctl enable "$app.service" --quiet
|
||||||
|
|
||||||
systemctl restart "$app"
|
systemctl restart "$app"
|
||||||
|
|
||||||
|
|
|
@ -15,15 +15,15 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_script_progression --message="Loading installation settings..." --weight=1
|
ynh_script_progression --message="Loading installation settings..." --weight=1
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
no_sso=$(ynh_app_setting_get "$app" no_sso)
|
no_sso=$(ynh_app_setting_get --app=$app --key=no_sso)
|
||||||
server_password=$(ynh_app_setting_get "$app" server_password)
|
server_password=$(ynh_app_setting_get --app=$app --key=server_password)
|
||||||
su_passwd=$(ynh_app_setting_get "$app" su_passwd)
|
su_passwd=$(ynh_app_setting_get --app=$app --key=su_passwd)
|
||||||
welcometext=$(ynh_app_setting_get "$app" welcometext)
|
welcometext=$(ynh_app_setting_get --app=$app --key=welcometext)
|
||||||
registerName=$(ynh_app_setting_get "$app" registerName)
|
registerName=$(ynh_app_setting_get --app=$app --key=registerName)
|
||||||
port=$(ynh_app_setting_get "$app" port)
|
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
final_path=$(ynh_app_setting_get "$app" final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
instance_id=$(ynh_app_setting_get "$app" instance_id)
|
instance_id=$(ynh_app_setting_get --app=$app --key=instance_id)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK VERSION
|
# CHECK VERSION
|
||||||
|
@ -65,11 +65,11 @@ if [ -z "$server_password" ]; then
|
||||||
| head -1 \
|
| head -1 \
|
||||||
| sed -r "s/.* (([a-z])*\.([a-z])*).*/\1/g")
|
| sed -r "s/.* (([a-z])*\.([a-z])*).*/\1/g")
|
||||||
|
|
||||||
ynh_app_setting_set "$app" server_password "$server_password"
|
ynh_app_setting_set --app=$app --key=server_password --value=$server_password
|
||||||
ynh_app_setting_set "$app" welcometext "$welcometext"
|
ynh_app_setting_set --app=$app --key=welcometext --value=$welcometext
|
||||||
ynh_app_setting_set "$app" registerName "$registerName"
|
ynh_app_setting_set --app=$app --key=registerName --value=$registerName
|
||||||
ynh_app_setting_set "$app" su_passwd "$su_passwd"
|
ynh_app_setting_set --app=$app --key=su_passwd --value=$su_passwd
|
||||||
ynh_app_setting_set "$app" domain "$domain"
|
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
|
|
||||||
systemctl stop mumble-server
|
systemctl stop mumble-server
|
||||||
dpkg-reconfigure mumble-server --frontend=Noninteractive
|
dpkg-reconfigure mumble-server --frontend=Noninteractive
|
||||||
|
@ -186,7 +186,7 @@ murmurd -ini "$mumble_conf" -supw "$su_passwd" "$instance_id" || true
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
systemctl stop mumble-server
|
systemctl stop mumble-server
|
||||||
systemctl disable mumble-server
|
systemctl disable mumble-server --quiet
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
|
Loading…
Add table
Reference in a new issue