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:
parent
1f64caad7a
commit
1a9595752d
4 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -173,7 +173,7 @@ chown -R $app:$app /etc/wireguard
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
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"
|
yunohost service add wireguard_ui --description "WireGuard UI"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -121,8 +121,8 @@ systemctl enable --quiet wireguard_ui_conf.path
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
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" --log "/var/log/$app/ui.log"
|
yunohost service add wireguard_ui --description "WireGuard UI"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE VARIOUS FILES
|
# RESTORE VARIOUS FILES
|
||||||
|
|
|
@ -206,7 +206,7 @@ chmod -R 750 $final_path/db
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
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"
|
yunohost service add wireguard_ui --description "WireGuard UI"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue