mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
commit
dd8e74b7b8
3 changed files with 4 additions and 3 deletions
|
@ -103,6 +103,7 @@ name = "Configuration"
|
||||||
[main.hotspot.dns]
|
[main.hotspot.dns]
|
||||||
ask = "DNS resolvers"
|
ask = "DNS resolvers"
|
||||||
type = "tags"
|
type = "tags"
|
||||||
|
optional = true
|
||||||
visible = "advanced"
|
visible = "advanced"
|
||||||
pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
|
pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
|
||||||
pattern.error = "Not an ip"
|
pattern.error = "Not an ip"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Create and manager wifi networks, share Internet access and use YunoHost apps accross wifi",
|
"en": "Create and manager wifi networks, share Internet access and use YunoHost apps accross wifi",
|
||||||
"fr": "Créer et configurer des réseaux wifi, partager l'accès a Internet et utiliser les applications YunoHost via wifi"
|
"fr": "Créer et configurer des réseaux wifi, partager l'accès a Internet et utiliser les applications YunoHost via wifi"
|
||||||
},
|
},
|
||||||
"version": "2.2.0~ynh1",
|
"version": "2.2.1~ynh1",
|
||||||
"url": "https://github.com/labriqueinternet/hotspot_ynh",
|
"url": "https://github.com/labriqueinternet/hotspot_ynh",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -199,7 +199,7 @@ ynh_app_config_apply() {
|
||||||
|
|
||||||
# Stop vpn client
|
# Stop vpn client
|
||||||
ynh_print_info --message="Stopping hotspot in order to edit files"
|
ynh_print_info --message="Stopping hotspot in order to edit files"
|
||||||
systemctl stop ${service_name}
|
yunohost service stop $service_name
|
||||||
|
|
||||||
_ynh_app_config_apply
|
_ynh_app_config_apply
|
||||||
|
|
||||||
|
@ -209,7 +209,7 @@ ynh_app_config_apply() {
|
||||||
|
|
||||||
# Start hotspot
|
# Start hotspot
|
||||||
ynh_print_info --message="Starting hotspot service if needed"
|
ynh_print_info --message="Starting hotspot service if needed"
|
||||||
systemctl start ${service_name}
|
yunohost service start $service_name
|
||||||
else
|
else
|
||||||
ynh_print_info --message="Cleanup hotspot config files"
|
ynh_print_info --message="Cleanup hotspot config files"
|
||||||
ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf"
|
ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf"
|
||||||
|
|
Loading…
Add table
Reference in a new issue