1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

Add services to dash

Added services to dashboard and minor LDAP tweak.
This commit is contained in:
Steven vanZyl 2018-10-09 15:18:51 -04:00
parent 63ec2b4de3
commit 19cd88ac8c
5 changed files with 20 additions and 1 deletions

View file

@ -130,7 +130,7 @@ MUSIC_DIRECTORY_PATH=__FINALPATH__/data/music
LDAP_ENABLED=True
LDAP_SERVER_URI=ldap://localhost:389
# LDAP_BIND_DN=cn=admin,dc=domain,dc=com
LDAP_BIND_DN=cn=admin,dc=yunohost,dc=org
# LDAP_BIND_PASSWORD=bindpassword
LDAP_SEARCH_FILTER=(|(cn={0})(mail={0}))
LDAP_START_TLS=False

View file

@ -211,6 +211,11 @@ ynh_add_systemd_config "$app-server" "funkwhale-server.service"
ynh_add_systemd_config "$app-worker" "funkwhale-worker.service"
ynh_add_systemd_config "$app-beat" "funkwhale-beat.service"
# Add services to YunoHost dashboard
yunohost service add $app-server
yunohost service add $app-worker
yunohost service add $app-beat
systemctl restart "$app".target
#=================================================

View file

@ -33,6 +33,10 @@ ynh_remove_systemd_config "$app-server"
ynh_remove_systemd_config "$app-worker"
ynh_remove_systemd_config "$app-beat"
yunohost service remove $app-server
yunohost service remove $app-worker
yunohost service remove $app-beat
systemctl stop "$app".target
ynh_secure_remove "/etc/systemd/system/$app.target"

View file

@ -102,6 +102,11 @@ ynh_restore_file "/etc/systemd/system/$app-server.service"
ynh_restore_file "/etc/systemd/system/$app-worker.service"
ynh_restore_file "/etc/systemd/system/$app.target"
# Add services to YunoHost dashboard
yunohost service add $app-server
yunohost service add $app-worker
yunohost service add $app-beat
systemctl enable "$app-beat.service"
systemctl enable "$app-server.service"
systemctl enable "$app-worker.service"

View file

@ -198,6 +198,11 @@ ynh_add_systemd_config "$app-server" "funkwhale-server.service"
ynh_add_systemd_config "$app-worker" "funkwhale-worker.service"
ynh_add_systemd_config "$app-beat" "funkwhale-beat.service"
# Add services to YunoHost dashboard
yunohost service add $app-server
yunohost service add $app-worker
yunohost service add $app-beat
systemctl restart "$app".target
#=================================================