1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Enchance services more

This commit is contained in:
tituspijean 2021-03-21 15:28:19 +01:00
parent 1f64caad7a
commit 1a9595752d
4 changed files with 5 additions and 5 deletions

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/
ExecStart=__FINALPATH__/wireguard-ui --bind-address="127.0.0.1:__PORT__" --disable-login >> /var/log/__APP__/ui.log 2>&1
ExecStart=__FINALPATH__/wireguard-ui --bind-address="127.0.0.1:__PORT__" --disable-login
[Install]
WantedBy=multi-user.target

View file

@ -173,7 +173,7 @@ chown -R $app:$app /etc/wireguard
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add wg-quick@wg0 --description "WireGuard" --needs_exposed_ports $port_wg
yunohost service add wg-quick@wg0 --description "WireGuard" --needs_exposed_ports $port_wg --test_status "wg show | grep wg0"
yunohost service add wireguard_ui --description "WireGuard UI"
#=================================================

View file

@ -121,8 +121,8 @@ systemctl enable --quiet wireguard_ui_conf.path
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add wg-quick@wg0 --description "WireGuard" --needs_exposed_ports "$port_wg"
yunohost service add wireguard_ui --description "WireGuard UI" --log "/var/log/$app/ui.log"
yunohost service add wg-quick@wg0 --description "WireGuard" --needs_exposed_ports "$port_wg" --test_status "wg show | grep wg0"
yunohost service add wireguard_ui --description "WireGuard UI"
#=================================================
# RESTORE VARIOUS FILES

View file

@ -206,7 +206,7 @@ chmod -R 750 $final_path/db
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add wg-quick@wg0 --description "WireGuard" --needs_exposed_ports "$port_wg"
yunohost service add wg-quick@wg0 --description "WireGuard" --needs_exposed_ports "$port_wg" --test_status "wg show | grep wg0"
yunohost service add wireguard_ui --description "WireGuard UI"
#=================================================