mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Upgrade _conf.service too, remove others_var
This commit is contained in:
parent
30e421a694
commit
2656af882f
3 changed files with 8 additions and 5 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "Virtual Private Networks (VPN) via WireGuard, with a web UI to ease configuration",
|
"en": "Virtual Private Networks (VPN) via WireGuard, with a web UI to ease configuration",
|
||||||
"fr": "Réseaux Privés Virtuels (VPN) via WireGuard, avec une web UI pour faciliter sa configuration"
|
"fr": "Réseaux Privés Virtuels (VPN) via WireGuard, avec une web UI pour faciliter sa configuration"
|
||||||
},
|
},
|
||||||
"version": "0.2.7~ynh5",
|
"version": "0.2.7~ynh6",
|
||||||
"url": "https://github.com/ngoduykhanh/wireguard-ui",
|
"url": "https://github.com/ngoduykhanh/wireguard-ui",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
"email": "tituspijean@outlook.com"
|
"email": "tituspijean@outlook.com"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.0.8"
|
"yunohost": ">= 4.2"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": [
|
"services": [
|
||||||
|
|
|
@ -146,14 +146,14 @@ ynh_replace_string --match_string="__PRIVATE_KEY__" --replace_string="$(wg genke
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated systemd config for the web UI
|
# Create a dedicated systemd config for the web UI
|
||||||
ynh_add_systemd_config --service=wireguard_ui --template=wireguard_ui.service --others_var="port"
|
ynh_add_systemd_config --service=wireguard_ui --template=wireguard_ui.service
|
||||||
|
|
||||||
# Create a dedicated systemd config for monitoring WireGuard's configuration
|
# Create a dedicated systemd config for monitoring WireGuard's configuration
|
||||||
cp ../conf/wireguard_ui_conf.path /etc/systemd/system/wireguard_ui_conf.path
|
cp ../conf/wireguard_ui_conf.path /etc/systemd/system/wireguard_ui_conf.path
|
||||||
systemctl enable --quiet wireguard_ui_conf.path
|
systemctl enable --quiet wireguard_ui_conf.path
|
||||||
|
|
||||||
# Create a dedicated systemd config for restarting WireGuard when its configuration changes
|
# Create a dedicated systemd config for restarting WireGuard when its configuration changes
|
||||||
ynh_add_systemd_config --service=wireguard_ui_conf --template=wireguard_ui_conf.service --others_var="port_wg"
|
ynh_add_systemd_config --service=wireguard_ui_conf --template=wireguard_ui_conf.service
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -173,12 +173,15 @@ ynh_system_user_create --username=$app
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated systemd config for the web UI
|
# Create a dedicated systemd config for the web UI
|
||||||
ynh_add_systemd_config --service=wireguard_ui --template=wireguard_ui.service --others_var="port"
|
ynh_add_systemd_config --service=wireguard_ui --template=wireguard_ui.service
|
||||||
|
|
||||||
# Create a dedicated systemd config for monitoring WireGuard's configuration
|
# Create a dedicated systemd config for monitoring WireGuard's configuration
|
||||||
cp ../conf/wireguard_ui_conf.path /etc/systemd/system/wireguard_ui_conf.path
|
cp ../conf/wireguard_ui_conf.path /etc/systemd/system/wireguard_ui_conf.path
|
||||||
systemctl enable --quiet wireguard_ui_conf.path
|
systemctl enable --quiet wireguard_ui_conf.path
|
||||||
|
|
||||||
|
# Create a dedicated systemd config for restarting WireGuard when its configuration changes
|
||||||
|
ynh_add_systemd_config --service=wireguard_ui_conf --template=wireguard_ui_conf.service
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CONFIGURING WIREGUARD
|
# CONFIGURING WIREGUARD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue