mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Update upgrade
This commit is contained in:
parent
90697ce386
commit
28a545a6f2
1 changed files with 9 additions and 6 deletions
|
@ -1,13 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
yunohost_setting() {
|
ynh_setting() {
|
||||||
sudo grep "^${1}:" "/etc/yunohost/apps/hotspot/settings.yml" | sed s/^[^:]\\+:\\s*[\"\']\\?// | sed s/\\s*[\"\']\$//
|
app=${1}
|
||||||
|
setting=${2}
|
||||||
|
|
||||||
|
sudo grep "^${setting}:" "/etc/yunohost/apps/${app}/settings.yml" | sed s/^[^:]\\+:\\s*[\"\']\\?// | sed s/\\s*[\"\']\$//
|
||||||
}
|
}
|
||||||
|
|
||||||
domain=$(yunohost_setting domain)
|
domain=$(ynh_setting hotspot domain)
|
||||||
path=$(yunohost_setting path)
|
path=$(ynh_setting hotspot path)
|
||||||
wifi_ssid=$(yunohost_setting wifi_ssid)
|
wifi_ssid=$(ynh_setting hotspot wifi_ssid)
|
||||||
wifi_passphrase=$(yunohost_setting wifi_passphrase)
|
wifi_passphrase=$(ynh_setting hotspot wifi_passphrase)
|
||||||
|
|
||||||
if dpkg -l firmware-linux-nonfree &> /dev/null; then
|
if dpkg -l firmware-linux-nonfree &> /dev/null; then
|
||||||
firmware_nonfree=yes
|
firmware_nonfree=yes
|
||||||
|
|
Loading…
Reference in a new issue