args: app: hotspot force: false label: null no_remove_on_failure: false ended_at: 2023-09-30 12:36:56.742170 env: YNH_APP_ACTION: install YNH_APP_ARG_FIRMWARE_NONFREE: '0' YNH_APP_ARG_WIFI_SSID: BoulaiteWave YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76 YNH_APP_ID: hotspot YNH_APP_INSTANCE_NAME: hotspot YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 2.1.1~ynh1 YNH_APP_PACKAGING_FORMAT: '1.0' YNH_ARCH: armhf YNH_DEBIAN_VERSION: bullseye error: An error occurred inside the app installation script interface: cli operation: app_install parent: null related_to: - - app - hotspot started_at: 2023-09-30 12:29:33.147595 success: false yunohost_version: 11.2.4 ============ 2023-09-30 14:29:33,209: INFO - Installing hotspot... 2023-09-30 14:29:33,891: DEBUG - initializing ldap interface 2023-09-30 14:29:34,549: DEBUG - Nothing to update in LDAP 2023-09-30 14:29:34,552: DEBUG - Permission 'hotspot.main' updated 2023-09-30 14:29:35,023: DEBUG - To view the log of the operation 'Update URL related to permission 'hotspot'', use the command 'yunohost log show 20230930-122934-permission_url-hotspot' 2023-09-30 14:29:37,362: DEBUG - The permission database has been resynchronized 2023-09-30 14:29:39,374: DEBUG - SSOwat configuration regenerated 2023-09-30 14:29:39,898: DEBUG - Permission 'hotspot.main' created 2023-09-30 14:29:39,901: DEBUG - To view the log of the operation 'Create permission 'hotspot'', use the command 'yunohost log show 20230930-122933-permission_create-hotspot' 2023-09-30 14:29:40,119: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']' 2023-09-30 14:29:40,164: DEBUG - + source _common.sh 2023-09-30 14:29:40,167: DEBUG - ++ pkg_dependencies='sipcalc hostapd iw kmod' 2023-09-30 14:29:40,169: DEBUG - ++ nonfree_firmware_packages='firmware-atheros firmware-realtek firmware-ralink firmware-libertas atmel-firmware firmware-zd1211' 2023-09-30 14:29:40,171: DEBUG - ++ free_firmware_packages=firmware-ath9k-htc 2023-09-30 14:29:40,173: DEBUG - + source /usr/share/yunohost/helpers 2023-09-30 14:29:40,179: DEBUG - +++ set +o 2023-09-30 14:29:40,182: DEBUG - +++ grep xtrace 2023-09-30 14:29:40,194: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2023-09-30 14:29:40,197: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2023-09-30 14:29:40,438: DEBUG - + ynh_abort_if_errors 2023-09-30 14:29:40,446: DEBUG - + trap ynh_exit_properly EXIT 2023-09-30 14:29:40,448: DEBUG - + wifi_ssid=BoulaiteWave 2023-09-30 14:29:40,450: DEBUG - + wifi_passphrase=********** 2023-09-30 14:29:40,452: DEBUG - + firmware_nonfree=0 2023-09-30 14:29:40,454: DEBUG - + app=hotspot 2023-09-30 14:29:40,456: DEBUG - + service_name=ynh-hotspot 2023-09-30 14:29:41,090: INFO - [+...................] > Validating installation parameters... 2023-09-30 14:29:41,098: DEBUG - + [[ -z BoulaiteWave ]] 2023-09-30 14:29:41,100: DEBUG - + [[ -z ********** ]] 2023-09-30 14:29:41,103: DEBUG - ++ wc -c 2023-09-30 14:29:41,109: DEBUG - + wifi_passphrase_length=18 2023-09-30 14:29:41,113: DEBUG - + [[ 18 -lt 8 ]] 2023-09-30 14:29:41,115: DEBUG - + [[ 18 -gt 63 ]] 2023-09-30 14:29:41,118: DEBUG - + [[ ********** =~ [^[:print:]] ]] 2023-09-30 14:29:41,604: INFO - [#++.................] > Storing installation settings... 2023-09-30 14:29:41,617: DEBUG - + ynh_app_setting_set --app=hotspot --key=wifi_ssid --value=BoulaiteWave 2023-09-30 14:29:41,620: DEBUG - + local _globalapp=hotspot 2023-09-30 14:29:42,290: DEBUG - + app=hotspot 2023-09-30 14:29:42,292: DEBUG - + [[ wifi_ssid =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:29:42,298: DEBUG - + ynh_app_setting set hotspot wifi_ssid BoulaiteWave 2023-09-30 14:29:42,896: DEBUG - + ynh_app_setting_set --app=hotspot --key=wifi_passphrase --value=********** 2023-09-30 14:29:42,908: DEBUG - + local _globalapp=hotspot 2023-09-30 14:29:43,505: DEBUG - + app=hotspot 2023-09-30 14:29:43,509: DEBUG - + [[ wifi_passphrase =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:29:43,518: DEBUG - + ynh_app_setting set hotspot wifi_passphrase ********** 2023-09-30 14:29:44,098: DEBUG - + ynh_app_setting_set --app=hotspot --key=firmware_nonfree --value=0 2023-09-30 14:29:44,113: DEBUG - + local _globalapp=hotspot 2023-09-30 14:29:45,013: DEBUG - + app=hotspot 2023-09-30 14:29:45,018: DEBUG - + [[ firmware_nonfree =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:29:45,020: DEBUG - + ynh_app_setting set hotspot firmware_nonfree 0 2023-09-30 14:29:45,598: DEBUG - + ynh_app_setting_set --app=hotspot --key=service_name --value=ynh-hotspot 2023-09-30 14:29:45,612: DEBUG - + local _globalapp=hotspot 2023-09-30 14:29:46,262: DEBUG - + app=hotspot 2023-09-30 14:29:46,265: DEBUG - + [[ service_name =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:29:46,271: DEBUG - + ynh_app_setting set hotspot service_name ynh-hotspot 2023-09-30 14:29:47,337: INFO - [###+................] > Configuring firewall... 2023-09-30 14:29:47,347: DEBUG - + ynh_exec_warn_less yunohost firewall allow --no-upnp --ipv6 UDP 547 2023-09-30 14:29:47,349: DEBUG - + [[ 7 -eq 1 ]] 2023-09-30 14:29:47,351: DEBUG - + yunohost firewall allow --no-upnp --ipv6 UDP 547 2023-09-30 14:29:49,226: DEBUG - Port 547 is already opened for IPv6 connections 2023-09-30 14:32:24,723: DEBUG - Firewall reloaded 2023-09-30 14:32:24,806: DEBUG - opened_ports: 2023-09-30 14:32:24,807: DEBUG - - 22 2023-09-30 14:32:24,809: DEBUG - - 25 2023-09-30 14:32:24,811: DEBUG - - 53 2023-09-30 14:32:24,821: DEBUG - - 67 2023-09-30 14:32:24,823: DEBUG - - 80 2023-09-30 14:32:24,825: DEBUG - - 443 2023-09-30 14:32:24,827: DEBUG - - 547 2023-09-30 14:32:24,837: DEBUG - - 587 2023-09-30 14:32:24,839: DEBUG - - 993 2023-09-30 14:32:24,841: DEBUG - - 5222 2023-09-30 14:32:24,842: DEBUG - - 5269 2023-09-30 14:32:24,844: DEBUG - - 5353 2023-09-30 14:32:25,119: DEBUG - + ynh_exec_warn_less yunohost firewall allow --no-upnp UDP 67 2023-09-30 14:32:25,123: DEBUG - + [[ 6 -eq 1 ]] 2023-09-30 14:32:25,133: DEBUG - + yunohost firewall allow --no-upnp UDP 67 2023-09-30 14:32:27,152: DEBUG - Port 67 is already opened for IPv4 connections 2023-09-30 14:32:27,154: DEBUG - Port 67 is already opened for IPv6 connections 2023-09-30 14:32:41,741: DEBUG - Firewall reloaded 2023-09-30 14:32:41,824: DEBUG - opened_ports: 2023-09-30 14:32:41,826: DEBUG - - 22 2023-09-30 14:32:41,828: DEBUG - - 25 2023-09-30 14:32:41,830: DEBUG - - 53 2023-09-30 14:32:41,832: DEBUG - - 67 2023-09-30 14:32:41,834: DEBUG - - 80 2023-09-30 14:32:41,835: DEBUG - - 443 2023-09-30 14:32:41,845: DEBUG - - 547 2023-09-30 14:32:41,847: DEBUG - - 587 2023-09-30 14:32:41,854: DEBUG - - 993 2023-09-30 14:32:41,856: DEBUG - - 5222 2023-09-30 14:32:41,858: DEBUG - - 5269 2023-09-30 14:32:41,860: DEBUG - - 5353 2023-09-30 14:32:42,145: DEBUG - + test -e /usr/sbin/rfkill 2023-09-30 14:32:42,589: INFO - [####++..............] > Installing firmware... 2023-09-30 14:32:42,603: DEBUG - + export DEBIAN_FRONTEND=noninteractive 2023-09-30 14:32:42,605: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-09-30 14:32:42,607: DEBUG - + [[ 0 -eq 1 ]] 2023-09-30 14:32:42,609: DEBUG - + pkg_dependencies='sipcalc hostapd iw kmod firmware-ath9k-htc' 2023-09-30 14:32:43,048: INFO - [######+.............] > Installing dependencies... 2023-09-30 14:32:43,061: DEBUG - + ynh_install_app_dependencies sipcalc hostapd iw kmod firmware-ath9k-htc 2023-09-30 14:32:43,063: DEBUG - + local 'dependencies=sipcalc hostapd iw kmod firmware-ath9k-htc' 2023-09-30 14:32:43,072: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g' 2023-09-30 14:32:43,083: DEBUG - ++ echo 'sipcalc hostapd iw kmod firmware-ath9k-htc' 2023-09-30 14:32:43,105: DEBUG - + dependencies='sipcalc, hostapd, iw, kmod, firmware-ath9k-htc' 2023-09-30 14:32:43,107: DEBUG - + local 'dependencies=sipcalc, hostapd, iw, kmod, firmware-ath9k-htc' 2023-09-30 14:32:43,112: DEBUG - ++ ynh_read_manifest --manifest_key=version 2023-09-30 14:32:43,295: DEBUG - ++ '[' '!' -e '' ']' 2023-09-30 14:32:43,298: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json ']' 2023-09-30 14:32:43,303: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:32:43,308: DEBUG - ++ grep -q '\.json$' 2023-09-30 14:32:43,313: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:32:43,333: DEBUG - ++ jq .version /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json --raw-output 2023-09-30 14:32:44,082: DEBUG - + local version=2.1.1~ynh1 2023-09-30 14:32:44,084: DEBUG - + '[' -z 2.1.1~ynh1 ']' 2023-09-30 14:32:44,087: DEBUG - + '[' 2.1.1~ynh1 == null ']' 2023-09-30 14:32:44,089: DEBUG - + local dep_app=hotspot 2023-09-30 14:32:44,091: DEBUG - + [[ sipcalc, hostapd, iw, kmod, firmware-ath9k-htc =~ [<=>] ]] 2023-09-30 14:32:44,095: DEBUG - ++ sort -u 2023-09-30 14:32:44,104: DEBUG - ++ echo sipcalc, hostapd, iw, kmod, firmware-ath9k-htc 2023-09-30 14:32:44,115: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>)' 2023-09-30 14:32:44,126: DEBUG - + local specific_php_version= 2023-09-30 14:32:44,130: DEBUG - + grep --quiet php 2023-09-30 14:32:44,149: DEBUG - ++ ynh_package_is_installed postgresql-13 2023-09-30 14:32:44,266: DEBUG - ++ ynh_wait_dpkg_free 2023-09-30 14:32:45,500: DEBUG - ++ return 0 2023-09-30 14:32:45,504: DEBUG - ++ grep --count 'ok installed' 2023-09-30 14:32:45,509: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2023-09-30 14:32:45,675: DEBUG - ++ echo no 2023-09-30 14:32:45,678: DEBUG - + local psql_installed=no 2023-09-30 14:32:45,680: DEBUG - + [[ true == \t\r\u\e ]] 2023-09-30 14:32:45,682: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false 2023-09-30 14:32:45,684: DEBUG - + cat 2023-09-30 14:32:45,697: DEBUG - + ynh_package_install_from_equivs /tmp/hotspot-ynh-deps.control 2023-09-30 14:32:45,699: DEBUG - + local controlfile=/tmp/hotspot-ynh-deps.control 2023-09-30 14:32:45,708: DEBUG - ++ grep '^Package: ' /tmp/hotspot-ynh-deps.control 2023-09-30 14:32:45,717: DEBUG - ++ cut '--delimiter= ' --fields=2 2023-09-30 14:32:45,738: DEBUG - + local pkgname=hotspot-ynh-deps 2023-09-30 14:32:45,748: DEBUG - ++ grep '^Version: ' /tmp/hotspot-ynh-deps.control 2023-09-30 14:32:45,765: DEBUG - ++ cut '--delimiter= ' --fields=2 2023-09-30 14:32:45,783: DEBUG - + local pkgversion=2.1.1~ynh1 2023-09-30 14:32:45,787: DEBUG - + [[ -z hotspot-ynh-deps ]] 2023-09-30 14:32:45,789: DEBUG - + [[ -z 2.1.1~ynh1 ]] 2023-09-30 14:32:45,791: DEBUG - + ynh_package_update 2023-09-30 14:32:45,793: DEBUG - + ynh_apt update 2023-09-30 14:32:45,795: DEBUG - + ynh_wait_dpkg_free 2023-09-30 14:32:46,867: DEBUG - + return 0 2023-09-30 14:32:46,869: DEBUG - + LC_ALL=C 2023-09-30 14:32:46,871: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-09-30 14:32:46,873: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update 2023-09-30 14:32:47,955: DEBUG - Get:1 http://forge.yunohost.org/debian bullseye InRelease [18.4 kB] 2023-09-30 14:32:48,198: DEBUG - Hit:2 http://ftp.fr.debian.org/debian bullseye InRelease 2023-09-30 14:32:48,205: DEBUG - Get:3 http://security.debian.org bullseye-security InRelease [48.4 kB] 2023-09-30 14:32:50,935: DEBUG - Hit:4 https://packages.sury.org/php bullseye InRelease 2023-09-30 14:32:55,522: DEBUG - Get:5 http://security.debian.org bullseye-security/main armhf Packages [241 kB] 2023-09-30 14:32:56,153: DEBUG - Get:6 http://security.debian.org bullseye-security/main Translation-en [160 kB] 2023-09-30 14:32:58,885: DEBUG - Fetched 468 kB in 11s (41.5 kB/s) 2023-09-30 14:33:16,288: DEBUG - Reading package lists... 2023-09-30 14:33:18,072: DEBUG - ++ mktemp --directory 2023-09-30 14:33:18,086: DEBUG - + local TMPDIR=/tmp/tmp.bwJzXfCOmb 2023-09-30 14:33:18,088: DEBUG - + rm -f /usr/share/equivs/template/debian/compat 2023-09-30 14:33:20,442: DEBUG - + ynh_wait_dpkg_free 2023-09-30 14:33:24,367: DEBUG - + return 0 2023-09-30 14:33:24,426: DEBUG - + cp /tmp/hotspot-ynh-deps.control /tmp/tmp.bwJzXfCOmb/control 2023-09-30 14:33:24,475: DEBUG - + cd /tmp/tmp.bwJzXfCOmb 2023-09-30 14:33:24,479: DEBUG - + LC_ALL=C 2023-09-30 14:33:24,483: DEBUG - + equivs-build ./control 2023-09-30 14:33:27,662: DEBUG - dpkg-buildpackage: info: source package hotspot-ynh-deps 2023-09-30 14:33:27,664: DEBUG - dpkg-buildpackage: info: source version 2.1.1~ynh1 2023-09-30 14:33:27,666: DEBUG - dpkg-buildpackage: info: source distribution unstable 2023-09-30 14:33:27,668: DEBUG - dpkg-buildpackage: info: source changed by Equivs Dummy Package Generator <root@maindomain.tld> 2023-09-30 14:33:28,169: DEBUG - dpkg-source --before-build . 2023-09-30 14:33:28,173: DEBUG - dpkg-buildpackage: info: host architecture armhf 2023-09-30 14:33:29,727: DEBUG - debian/rules clean 2023-09-30 14:33:29,783: DEBUG - dh clean 2023-09-30 14:33:30,908: DEBUG - dh_clean 2023-09-30 14:33:31,346: DEBUG - debian/rules binary 2023-09-30 14:33:31,362: DEBUG - dh binary 2023-09-30 14:33:32,250: DEBUG - dh_update_autotools_config 2023-09-30 14:33:32,622: DEBUG - dh_autoreconf 2023-09-30 14:33:33,231: DEBUG - create-stamp debian/debhelper-build-stamp 2023-09-30 14:33:33,235: DEBUG - dh_prep 2023-09-30 14:33:33,605: DEBUG - dh_install 2023-09-30 14:33:34,140: DEBUG - dh_installdocs 2023-09-30 14:33:37,602: DEBUG - dh_installchangelogs 2023-09-30 14:33:38,912: DEBUG - dh_perl 2023-09-30 14:33:39,503: DEBUG - dh_link 2023-09-30 14:33:40,005: DEBUG - dh_strip_nondeterminism 2023-09-30 14:33:41,239: DEBUG - dh_compress 2023-09-30 14:33:41,779: DEBUG - dh_fixperms 2023-09-30 14:33:42,301: DEBUG - dh_missing 2023-09-30 14:33:42,663: DEBUG - dh_installdeb 2023-09-30 14:33:43,141: DEBUG - dh_gencontrol 2023-09-30 14:33:44,728: DEBUG - dh_md5sums 2023-09-30 14:33:45,192: DEBUG - dh_builddeb 2023-09-30 14:33:45,567: DEBUG - dpkg-deb: building package 'hotspot-ynh-deps' in '../hotspot-ynh-deps_2.1.1~ynh1_all.deb'. 2023-09-30 14:33:45,881: DEBUG - dpkg-genbuildinfo --build=binary 2023-09-30 14:33:54,866: DEBUG - dpkg-genchanges --build=binary >../hotspot-ynh-deps_2.1.1~ynh1_armhf.changes 2023-09-30 14:33:55,993: DEBUG - dpkg-genchanges: info: binary-only upload (no source code included) 2023-09-30 14:33:56,056: DEBUG - dpkg-source --after-build . 2023-09-30 14:33:57,509: DEBUG - dpkg-buildpackage: info: binary-only upload (no source included) 2023-09-30 14:33:57,729: DEBUG - 2023-09-30 14:33:57,731: DEBUG - The package has been created. 2023-09-30 14:33:57,735: DEBUG - Attention, the package has been created in the current directory, 2023-09-30 14:33:57,739: DEBUG - not in ".." as indicated by the message above! 2023-09-30 14:33:57,760: DEBUG - + LC_ALL=C 2023-09-30 14:33:57,762: DEBUG - + dpkg --force-depends --install ./hotspot-ynh-deps_2.1.1~ynh1_all.deb 2023-09-30 14:33:57,765: DEBUG - + tee ./dpkg_log 2023-09-30 14:33:58,447: DEBUG - Selecting previously unselected package hotspot-ynh-deps. 2023-09-30 14:34:11,499: DEBUG - (Reading database ... 78692 files and directories currently installed.) 2023-09-30 14:34:11,540: DEBUG - Preparing to unpack .../hotspot-ynh-deps_2.1.1~ynh1_all.deb ... 2023-09-30 14:34:12,233: DEBUG - Unpacking hotspot-ynh-deps (2.1.1~ynh1) ... 2023-09-30 14:34:13,491: DEBUG - dpkg: hotspot-ynh-deps: dependency problems, but configuring anyway as you requested: 2023-09-30 14:34:13,494: DEBUG - hotspot-ynh-deps depends on firmware-ath9k-htc; however: 2023-09-30 14:34:13,503: DEBUG - Package firmware-ath9k-htc is not installed. 2023-09-30 14:34:13,511: DEBUG - 2023-09-30 14:34:13,513: DEBUG - Setting up hotspot-ynh-deps (2.1.1~ynh1) ... 2023-09-30 14:34:14,921: DEBUG - + ynh_package_install --fix-broken 2023-09-30 14:34:14,933: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2023-09-30 14:34:14,936: DEBUG - + ynh_wait_dpkg_free 2023-09-30 14:34:15,676: DEBUG - + return 0 2023-09-30 14:34:15,696: DEBUG - + LC_ALL=C 2023-09-30 14:34:15,699: DEBUG - + DEBIAN_FRONTEND=noninteractive 2023-09-30 14:34:15,701: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken 2023-09-30 14:34:18,431: DEBUG - Reading package lists... 2023-09-30 14:34:32,106: DEBUG - Building dependency tree... 2023-09-30 14:34:33,237: DEBUG - Reading state information... 2023-09-30 14:34:34,874: DEBUG - Correcting dependencies... Done 2023-09-30 14:34:36,984: DEBUG - The following additional packages will be installed: 2023-09-30 14:34:37,013: DEBUG - firmware-ath9k-htc 2023-09-30 14:34:48,539: DEBUG - The following NEW packages will be installed: 2023-09-30 14:34:48,567: DEBUG - firmware-ath9k-htc 2023-09-30 14:34:56,979: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 2023-09-30 14:34:56,988: DEBUG - Need to get 0 B/48.5 kB of archives. 2023-09-30 14:34:56,996: DEBUG - After this operation, 168 kB of additional disk space will be used. 2023-09-30 14:34:57,834: DEBUG - Selecting previously unselected package firmware-ath9k-htc. 2023-09-30 14:34:58,241: DEBUG - (Reading database ... 78696 files and directories currently installed.) 2023-09-30 14:34:58,268: DEBUG - Preparing to unpack .../firmware-ath9k-htc_1.4.0-106-gc583009+dfsg1-1_all.deb ... 2023-09-30 14:34:58,474: DEBUG - Unpacking firmware-ath9k-htc (1.4.0-106-gc583009+dfsg1-1) ... 2023-09-30 14:35:00,757: DEBUG - Setting up firmware-ath9k-htc (1.4.0-106-gc583009+dfsg1-1) ... 2023-09-30 14:35:04,134: DEBUG - + [[ -n /tmp/tmp.bwJzXfCOmb ]] 2023-09-30 14:35:04,143: DEBUG - + rm --recursive --force /tmp/tmp.bwJzXfCOmb 2023-09-30 14:35:04,185: DEBUG - + ynh_package_is_installed hotspot-ynh-deps 2023-09-30 14:35:04,404: DEBUG - + ynh_wait_dpkg_free 2023-09-30 14:35:05,204: DEBUG - + return 0 2023-09-30 14:35:05,222: DEBUG - + dpkg-query --show '--showformat=${Status}' hotspot-ynh-deps 2023-09-30 14:35:05,227: DEBUG - + grep --count 'ok installed' 2023-09-30 14:35:05,390: DEBUG - + rm /tmp/hotspot-ynh-deps.control 2023-09-30 14:35:05,427: DEBUG - ++ ynh_package_is_installed postgresql-13 2023-09-30 14:35:05,551: DEBUG - ++ ynh_wait_dpkg_free 2023-09-30 14:35:06,261: DEBUG - ++ return 0 2023-09-30 14:35:06,267: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13 2023-09-30 14:35:06,269: DEBUG - ++ grep --count 'ok installed' 2023-09-30 14:35:06,424: DEBUG - ++ echo no 2023-09-30 14:35:06,429: DEBUG - + local psql_installed2=no 2023-09-30 14:35:06,432: DEBUG - + [[ no != \n\o ]] 2023-09-30 14:35:06,888: INFO - [#######++...........] > Configuring system user... 2023-09-30 14:35:06,898: DEBUG - + ynh_system_user_create --username=hotspot 2023-09-30 14:35:07,203: DEBUG - + use_shell=0 2023-09-30 14:35:07,206: DEBUG - + home_dir= 2023-09-30 14:35:07,210: DEBUG - + groups= 2023-09-30 14:35:07,214: DEBUG - + ynh_system_user_exists hotspot 2023-09-30 14:35:07,305: DEBUG - + getent passwd hotspot 2023-09-30 14:35:10,693: DEBUG - + '[' -n '' ']' 2023-09-30 14:35:10,704: DEBUG - + local user_home_dir=--no-create-home 2023-09-30 14:35:10,708: DEBUG - + local 'shell=--shell /usr/sbin/nologin' 2023-09-30 14:35:10,710: DEBUG - + useradd --no-create-home --system --user-group hotspot --shell /usr/sbin/nologin 2023-09-30 14:35:17,947: INFO - [#########+..........] > Configuring hotspot... 2023-09-30 14:35:17,957: DEBUG - + ip6_net= 2023-09-30 14:35:17,959: DEBUG - + ip6_dns= 2023-09-30 14:35:17,962: DEBUG - + ip4_nat_prefix_index=hotspot 2023-09-30 14:35:17,964: DEBUG - + [[ hotspot == \h\o\t\s\p\o\t ]] 2023-09-30 14:35:17,966: DEBUG - + ip4_nat_prefix_index=0 2023-09-30 14:35:17,967: DEBUG - + ip4_nat_prefix=10.0.242 2023-09-30 14:35:17,969: DEBUG - + ip4_dns=10.0.242.1 2023-09-30 14:35:17,971: DEBUG - + hot_reload_usb_wifi_cards 2023-09-30 14:35:17,974: DEBUG - + modulesList='acx-mac80211 ar5523 ar9170usb at76c50x-usb at76_usb ath9k_htc carl9170 orinoco_usb p54usb prism2_usb r8712u r8192s_usb r8192u_usb rndis_wlan rt2500usb rt2800usb rt2870sta rt73usb rtl8187 rtl8192cu usb8xxx vt6656_stage zd1201 zd1211rw' 2023-09-30 14:35:17,976: DEBUG - + modprobe --quiet --remove acx-mac80211 ar5523 ar9170usb at76c50x-usb at76_usb ath9k_htc carl9170 orinoco_usb p54usb prism2_usb r8712u r8192s_usb r8192u_usb rndis_wlan rt2500usb rt2800usb rt2870sta rt73usb rtl8187 rtl8192cu usb8xxx vt6656_stage zd1201 zd1211rw 2023-09-30 14:35:23,173: DEBUG - + true 2023-09-30 14:35:23,199: DEBUG - ++ grep -Pio '(?<=usb )[0-9-]+(?=:.*firmware)' 2023-09-30 14:35:23,201: DEBUG - ++ dmesg 2023-09-30 14:35:23,204: DEBUG - ++ sort 2023-09-30 14:35:23,222: DEBUG - ++ uniq 2023-09-30 14:35:23,330: WARNING - Try to reload driver for usb 1-1 2023-09-30 14:35:23,334: DEBUG - + possibleUsbDevicesNeedingReload=1-1 2023-09-30 14:35:23,336: DEBUG - + for usbPath in $possibleUsbDevicesNeedingReload 2023-09-30 14:35:23,337: DEBUG - + [[ -f /sys/bus/usb/devices/1-1/authorized ]] 2023-09-30 14:35:23,340: DEBUG - + echo 0 2023-09-30 14:35:23,449: DEBUG - + echo 1 2023-09-30 14:35:23,461: DEBUG - + sleep 2 2023-09-30 14:35:25,503: DEBUG - ++ head -n 1 2023-09-30 14:35:25,506: DEBUG - ++ unused_iw_devices 2023-09-30 14:35:25,517: DEBUG - ++ grep -F -v -f /dev/fd/63 2023-09-30 14:35:25,519: DEBUG - ++ iw_devices 2023-09-30 14:35:25,541: DEBUG - ++ grep Interface 2023-09-30 14:35:25,543: DEBUG - ++ grep -v 'mon\.' 2023-09-30 14:35:25,566: DEBUG - ++ /sbin/iw dev 2023-09-30 14:35:25,567: DEBUG - +++ used_iw_devices 2023-09-30 14:35:25,578: DEBUG - ++ grep -v hotspot 2023-09-30 14:35:25,580: DEBUG - ++ awk '{ print $NF }' 2023-09-30 14:35:25,591: DEBUG - ++++ other_hotspot_apps 2023-09-30 14:35:25,609: DEBUG - ++++ local app_shortname=hotspot 2023-09-30 14:35:25,611: DEBUG - +++++ yunohost app list --output-as json 2023-09-30 14:35:25,625: DEBUG - +++++ grep -F hotspot 2023-09-30 14:35:25,632: DEBUG - +++++ jq -r '.apps[].id' 2023-09-30 14:35:34,066: DEBUG - ++++ local hotspot_apps=hotspot 2023-09-30 14:35:34,068: DEBUG - ++++ grep -F -x -v hotspot 2023-09-30 14:35:34,110: DEBUG - + wifi_device=wlx6cfdb9aac97e 2023-09-30 14:35:34,112: DEBUG - + wifi_secure=1 2023-09-30 14:35:34,121: DEBUG - + wifi_channel=6 2023-09-30 14:35:34,123: DEBUG - + ynh_app_setting_set --app=hotspot --key=wifi_ssid --value=BoulaiteWave 2023-09-30 14:35:34,126: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:34,700: DEBUG - + app=hotspot 2023-09-30 14:35:34,705: DEBUG - + [[ wifi_ssid =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:34,707: DEBUG - + ynh_app_setting set hotspot wifi_ssid BoulaiteWave 2023-09-30 14:35:37,258: DEBUG - + ynh_app_setting_set --app=hotspot --key=wifi_secure --value=1 2023-09-30 14:35:37,261: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:37,990: DEBUG - + app=hotspot 2023-09-30 14:35:40,408: DEBUG - + [[ wifi_secure =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:40,410: DEBUG - + ynh_app_setting set hotspot wifi_secure 1 2023-09-30 14:35:40,505: DEBUG - + ynh_app_setting_set --app=hotspot --key=wifi_passphrase --value=********** 2023-09-30 14:35:40,512: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:41,186: DEBUG - + app=hotspot 2023-09-30 14:35:41,188: DEBUG - + [[ wifi_passphrase =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:41,191: DEBUG - + ynh_app_setting set hotspot wifi_passphrase ********** 2023-09-30 14:35:42,501: DEBUG - + ynh_app_setting_set --app=hotspot --key=wifi_device --value=wlx6cfdb9aac97e 2023-09-30 14:35:42,511: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:44,087: DEBUG - + app=hotspot 2023-09-30 14:35:44,089: DEBUG - + [[ wifi_device =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:44,092: DEBUG - + ynh_app_setting set hotspot wifi_device wlx6cfdb9aac97e 2023-09-30 14:35:44,691: DEBUG - + ynh_app_setting_set --app=hotspot --key=wifi_channel --value=6 2023-09-30 14:35:44,698: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:45,354: DEBUG - + app=hotspot 2023-09-30 14:35:45,357: DEBUG - + [[ wifi_channel =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:45,363: DEBUG - + ynh_app_setting set hotspot wifi_channel 6 2023-09-30 14:35:45,973: DEBUG - + ynh_app_setting_set --app=hotspot --key=advanced --value=0 2023-09-30 14:35:45,982: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:46,615: DEBUG - + app=hotspot 2023-09-30 14:35:46,621: DEBUG - + [[ advanced =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:46,626: DEBUG - + ynh_app_setting set hotspot advanced 0 2023-09-30 14:35:47,227: DEBUG - + ynh_app_setting_set --app=hotspot --key=ip6_firewall --value=1 2023-09-30 14:35:47,230: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:47,847: DEBUG - + app=hotspot 2023-09-30 14:35:47,850: DEBUG - + [[ ip6_firewall =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:47,853: DEBUG - + ynh_app_setting set hotspot ip6_firewall 1 2023-09-30 14:35:48,454: DEBUG - + ynh_app_setting_set --app=hotspot --key=ip6_net --value= 2023-09-30 14:35:48,460: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:49,179: DEBUG - + app=hotspot 2023-09-30 14:35:49,248: DEBUG - + [[ ip6_net =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:49,250: DEBUG - + ynh_app_setting set hotspot ip6_net '' 2023-09-30 14:35:49,829: DEBUG - + ynh_app_setting_set --app=hotspot --key=ip6_dns --value= 2023-09-30 14:35:49,838: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:50,485: DEBUG - + app=hotspot 2023-09-30 14:35:50,488: DEBUG - + [[ ip6_dns =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:50,491: DEBUG - + ynh_app_setting set hotspot ip6_dns '' 2023-09-30 14:35:51,097: DEBUG - + ynh_app_setting_set --app=hotspot --key=ip4_dns --value=10.0.242.1 2023-09-30 14:35:51,107: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:51,791: DEBUG - + app=hotspot 2023-09-30 14:35:51,798: DEBUG - + [[ ip4_dns =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:51,802: DEBUG - + ynh_app_setting set hotspot ip4_dns 10.0.242.1 2023-09-30 14:35:52,427: DEBUG - + ynh_app_setting_set --app=hotspot --key=ip4_nat_prefix --value=10.0.242 2023-09-30 14:35:52,436: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:53,109: DEBUG - + app=hotspot 2023-09-30 14:35:53,114: DEBUG - + [[ ip4_nat_prefix =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:53,117: DEBUG - + ynh_app_setting set hotspot ip4_nat_prefix 10.0.242 2023-09-30 14:35:53,737: DEBUG - + [[ -z wlx6cfdb9aac97e ]] 2023-09-30 14:35:53,743: DEBUG - + ynh_app_setting_set --app=hotspot --key=service_enabled --value=1 2023-09-30 14:35:53,750: DEBUG - + local _globalapp=hotspot 2023-09-30 14:35:54,404: DEBUG - + app=hotspot 2023-09-30 14:35:54,443: DEBUG - + [[ service_enabled =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:54,445: DEBUG - + ynh_app_setting set hotspot service_enabled 1 2023-09-30 14:35:55,587: INFO - [##########++........] > Copying configuration files... 2023-09-30 14:35:55,592: DEBUG - + mkdir -pm 0755 /etc/hostapd/hotspot/ 2023-09-30 14:35:55,609: DEBUG - + chown root: /etc/hostapd/hotspot/ 2023-09-30 14:35:55,667: DEBUG - + mkdir -pm 0755 /etc/dnsmasq.hotspot/ 2023-09-30 14:35:55,681: DEBUG - + chown root: /etc/dnsmasq.hotspot/ 2023-09-30 14:35:55,698: DEBUG - + install -b -o root -g root -m 0644 ../conf/hostapd.conf.tpl /etc/hostapd/hotspot/hostapd.conf.tpl 2023-09-30 14:35:55,774: DEBUG - + install -b -o root -g root -m 0644 ../conf/dnsmasq.conf.tpl /etc/dnsmasq.hotspot/dnsmasq.conf.tpl 2023-09-30 14:35:55,800: DEBUG - + install -b -o root -g root -m 0644 ../conf/dnsmasq_dhcpdv6.conf.tpl /etc/dnsmasq.hotspot/dhcpdv6.conf.tpl 2023-09-30 14:35:55,850: DEBUG - + install -b -o root -g root -m 0644 ../conf/dnsmasq_dhcpdv4.conf.tpl /etc/dnsmasq.hotspot/dhcpdv4.conf.tpl 2023-09-30 14:35:55,882: DEBUG - + ynh_add_config --template=../conf/ynh-hotspot --destination=/usr/local/bin/ynh-hotspot 2023-09-30 14:35:56,244: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/ynh-hotspot ']' 2023-09-30 14:35:56,247: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/ynh-hotspot 2023-09-30 14:35:56,250: DEBUG - + ynh_backup_if_checksum_is_different --file=/usr/local/bin/ynh-hotspot 2023-09-30 14:35:56,335: DEBUG - + local checksum_setting_name=checksum__usr_local_bin_ynh-hotspot 2023-09-30 14:35:56,340: DEBUG - ++ ynh_app_setting_get --app=hotspot --key=checksum__usr_local_bin_ynh-hotspot 2023-09-30 14:35:56,347: DEBUG - ++ local _globalapp=hotspot 2023-09-30 14:35:56,680: DEBUG - ++ app=hotspot 2023-09-30 14:35:56,684: DEBUG - ++ [[ checksum__usr_local_bin_ynh-hotspot =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:35:56,691: DEBUG - ++ ynh_app_setting get hotspot checksum__usr_local_bin_ynh-hotspot 2023-09-30 14:35:57,291: DEBUG - + local checksum_value= 2023-09-30 14:35:57,295: DEBUG - + backup_file_checksum= 2023-09-30 14:35:57,301: DEBUG - + '[' -n '' ']' 2023-09-30 14:35:57,303: DEBUG - + touch /usr/local/bin/ynh-hotspot 2023-09-30 14:35:57,309: DEBUG - + chown root:root /usr/local/bin/ynh-hotspot 2023-09-30 14:35:57,325: DEBUG - + chmod 640 /usr/local/bin/ynh-hotspot 2023-09-30 14:35:57,349: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/ynh-hotspot /usr/local/bin/ynh-hotspot 2023-09-30 14:35:57,378: DEBUG - + _ynh_apply_default_permissions /usr/local/bin/ynh-hotspot 2023-09-30 14:35:57,387: DEBUG - + local target=/usr/local/bin/ynh-hotspot 2023-09-30 14:35:57,405: DEBUG - ++ tr -d '<>= ' 2023-09-30 14:35:57,410: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-09-30 14:35:57,619: DEBUG - ++ '[' '!' -e '' ']' 2023-09-30 14:35:57,623: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json ']' 2023-09-30 14:35:57,631: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:35:57,635: DEBUG - ++ grep -q '\.json$' 2023-09-30 14:35:57,637: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:35:57,651: DEBUG - ++ jq .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json --raw-output 2023-09-30 14:35:59,561: DEBUG - + local ynh_requirement=4.3.2 2023-09-30 14:35:59,638: DEBUG - + dpkg --compare-versions 1.0 ge 2 2023-09-30 14:35:59,663: DEBUG - + '[' -z 4.3.2 ']' 2023-09-30 14:35:59,678: DEBUG - + '[' 4.3.2 == null ']' 2023-09-30 14:35:59,682: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2023-09-30 14:35:59,699: DEBUG - + chmod o-rwx /usr/local/bin/ynh-hotspot 2023-09-30 14:35:59,716: DEBUG - + chmod g-w /usr/local/bin/ynh-hotspot 2023-09-30 14:35:59,742: DEBUG - + chown -R root:root /usr/local/bin/ynh-hotspot 2023-09-30 14:35:59,779: DEBUG - + ynh_system_user_exists hotspot 2023-09-30 14:35:59,889: DEBUG - + getent passwd hotspot 2023-09-30 14:35:59,927: DEBUG - + chown hotspot:hotspot /usr/local/bin/ynh-hotspot 2023-09-30 14:35:59,974: DEBUG - + echo /usr/local/bin/ynh-hotspot 2023-09-30 14:35:59,978: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-09-30 14:35:59,990: DEBUG - + ynh_replace_vars --file=/usr/local/bin/ynh-hotspot 2023-09-30 14:36:00,084: DEBUG - + test -n '' 2023-09-30 14:36:00,086: DEBUG - + test -n hotspot 2023-09-30 14:36:00,088: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=hotspot --target_file=/usr/local/bin/ynh-hotspot 2023-09-30 14:36:00,789: DEBUG - + sed --in-place $'s\001__NAME__\001hotspot\001g' /usr/local/bin/ynh-hotspot 2023-09-30 14:36:00,818: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=hotspot --target_file=/usr/local/bin/ynh-hotspot 2023-09-30 14:36:01,615: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001hotspot\001g' /usr/local/bin/ynh-hotspot 2023-09-30 14:36:01,636: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=hotspot --target_file=/usr/local/bin/ynh-hotspot 2023-09-30 14:36:02,316: DEBUG - + sed --in-place $'s\001__USER__\001hotspot\001g' /usr/local/bin/ynh-hotspot 2023-09-30 14:36:02,335: DEBUG - + test -n '' 2023-09-30 14:36:02,339: DEBUG - + dpkg --compare-versions 1.0 lt 2 2023-09-30 14:36:02,360: DEBUG - + test -n 7.4 2023-09-30 14:36:02,364: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/usr/local/bin/ynh-hotspot 2023-09-30 14:36:03,034: DEBUG - + sed --in-place $'s\001__PHPVERSION__\0017.4\001g' /usr/local/bin/ynh-hotspot 2023-09-30 14:36:03,055: DEBUG - + test -n '' 2023-09-30 14:36:03,061: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /usr/local/bin/ynh-hotspot 2023-09-30 14:36:03,066: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2023-09-30 14:36:03,071: DEBUG - ++ sort --unique 2023-09-30 14:36:03,102: DEBUG - + uniques_vars=('app') 2023-09-30 14:36:03,107: DEBUG - + local delimit=@ 2023-09-30 14:36:03,109: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:03,112: DEBUG - + [[ -v app ]] 2023-09-30 14:36:03,114: DEBUG - + match_string=__APP__ 2023-09-30 14:36:03,116: DEBUG - + match_string=__APP__ 2023-09-30 14:36:03,119: DEBUG - + replace_string=hotspot 2023-09-30 14:36:03,121: DEBUG - + replace_string=hotspot 2023-09-30 14:36:03,123: DEBUG - + replace_string=hotspot 2023-09-30 14:36:03,125: DEBUG - + sed --in-place s@__APP__@hotspot@g /usr/local/bin/ynh-hotspot 2023-09-30 14:36:03,130: DEBUG - + ynh_store_file_checksum --file=/usr/local/bin/ynh-hotspot 2023-09-30 14:36:03,147: DEBUG - + update_only=0 2023-09-30 14:36:03,299: DEBUG - + local checksum_setting_name=checksum__usr_local_bin_ynh-hotspot 2023-09-30 14:36:03,309: DEBUG - ++ md5sum /usr/local/bin/ynh-hotspot 2023-09-30 14:36:03,312: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-09-30 14:36:03,341: DEBUG - + ynh_app_setting_set --app=hotspot --key=checksum__usr_local_bin_ynh-hotspot --value=a68191a90986df4b2e633394bc7c3eb4 2023-09-30 14:36:03,345: DEBUG - + local _globalapp=hotspot 2023-09-30 14:36:04,080: DEBUG - + app=hotspot 2023-09-30 14:36:04,084: DEBUG - + [[ checksum__usr_local_bin_ynh-hotspot =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:04,091: DEBUG - + ynh_app_setting set hotspot checksum__usr_local_bin_ynh-hotspot a68191a90986df4b2e633394bc7c3eb4 2023-09-30 14:36:04,809: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:04,818: DEBUG - + unset backup_file_checksum 2023-09-30 14:36:04,822: DEBUG - + chmod 0755 /usr/local/bin/ynh-hotspot 2023-09-30 14:36:04,839: DEBUG - + mkdir -pm 0755 /etc/openvpn/scripts 2023-09-30 14:36:04,872: DEBUG - + mkdir -pm 0755 /etc/openvpn/scripts/route-up.d 2023-09-30 14:36:04,921: DEBUG - + mkdir -pm 0755 /etc/openvpn/scripts/route-down.d 2023-09-30 14:36:04,945: DEBUG - + ynh_add_config --template=../conf/openvpn_90-hotspot --destination=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:05,301: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/openvpn_90-hotspot ']' 2023-09-30 14:36:05,306: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/openvpn_90-hotspot 2023-09-30 14:36:05,309: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:05,396: DEBUG - + local checksum_setting_name=checksum__etc_openvpn_scripts_route-up.d_90-ynh-hotspot 2023-09-30 14:36:05,402: DEBUG - ++ ynh_app_setting_get --app=hotspot --key=checksum__etc_openvpn_scripts_route-up.d_90-ynh-hotspot 2023-09-30 14:36:05,407: DEBUG - ++ local _globalapp=hotspot 2023-09-30 14:36:05,720: DEBUG - ++ app=hotspot 2023-09-30 14:36:05,723: DEBUG - ++ [[ checksum__etc_openvpn_scripts_route-up.d_90-ynh-hotspot =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:05,726: DEBUG - ++ ynh_app_setting get hotspot checksum__etc_openvpn_scripts_route-up.d_90-ynh-hotspot 2023-09-30 14:36:06,370: DEBUG - + local checksum_value= 2023-09-30 14:36:06,374: DEBUG - + backup_file_checksum= 2023-09-30 14:36:06,380: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:06,383: DEBUG - + touch /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:06,387: DEBUG - + chown root:root /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:06,407: DEBUG - + chmod 640 /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:06,419: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/openvpn_90-hotspot /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:06,443: DEBUG - + _ynh_apply_default_permissions /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:06,446: DEBUG - + local target=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:06,453: DEBUG - ++ tr -d '<>= ' 2023-09-30 14:36:06,457: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-09-30 14:36:06,632: DEBUG - ++ '[' '!' -e '' ']' 2023-09-30 14:36:06,636: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json ']' 2023-09-30 14:36:06,646: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:36:06,648: DEBUG - ++ grep -q '\.json$' 2023-09-30 14:36:06,651: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:36:06,664: DEBUG - ++ jq .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json --raw-output 2023-09-30 14:36:07,323: DEBUG - + local ynh_requirement=4.3.2 2023-09-30 14:36:07,335: DEBUG - + dpkg --compare-versions 1.0 ge 2 2023-09-30 14:36:07,351: DEBUG - + '[' -z 4.3.2 ']' 2023-09-30 14:36:07,355: DEBUG - + '[' 4.3.2 == null ']' 2023-09-30 14:36:07,359: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2023-09-30 14:36:07,375: DEBUG - + chmod o-rwx /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:07,391: DEBUG - + chmod g-w /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:07,405: DEBUG - + chown -R root:root /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:07,422: DEBUG - + ynh_system_user_exists hotspot 2023-09-30 14:36:07,533: DEBUG - + getent passwd hotspot 2023-09-30 14:36:07,547: DEBUG - + chown hotspot:hotspot /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:07,571: DEBUG - + echo /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:07,577: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-09-30 14:36:07,599: DEBUG - + ynh_replace_vars --file=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:07,686: DEBUG - + test -n '' 2023-09-30 14:36:07,690: DEBUG - + test -n hotspot 2023-09-30 14:36:07,697: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=hotspot --target_file=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:08,303: DEBUG - + sed --in-place $'s\001__NAME__\001hotspot\001g' /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:08,328: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=hotspot --target_file=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:09,023: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001hotspot\001g' /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:09,040: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=hotspot --target_file=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:09,934: DEBUG - + sed --in-place $'s\001__USER__\001hotspot\001g' /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:09,948: DEBUG - + test -n '' 2023-09-30 14:36:09,952: DEBUG - + dpkg --compare-versions 1.0 lt 2 2023-09-30 14:36:09,968: DEBUG - + test -n 7.4 2023-09-30 14:36:09,972: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:10,743: DEBUG - + sed --in-place $'s\001__PHPVERSION__\0017.4\001g' /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:10,760: DEBUG - + test -n '' 2023-09-30 14:36:10,775: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:10,782: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2023-09-30 14:36:10,785: DEBUG - ++ sort --unique 2023-09-30 14:36:10,809: DEBUG - + uniques_vars=('service_name') 2023-09-30 14:36:10,815: DEBUG - + local delimit=@ 2023-09-30 14:36:10,818: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:10,820: DEBUG - + [[ -v service_name ]] 2023-09-30 14:36:10,822: DEBUG - + match_string=__SERVICE_NAME__ 2023-09-30 14:36:10,824: DEBUG - + match_string=__SERVICE_NAME__ 2023-09-30 14:36:10,828: DEBUG - + replace_string=ynh-hotspot 2023-09-30 14:36:10,830: DEBUG - + replace_string=ynh-hotspot 2023-09-30 14:36:10,834: DEBUG - + replace_string=ynh-hotspot 2023-09-30 14:36:10,838: DEBUG - + sed --in-place s@__SERVICE_NAME__@ynh-hotspot@g /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:10,841: DEBUG - + ynh_store_file_checksum --file=/etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:10,858: DEBUG - + update_only=0 2023-09-30 14:36:11,037: DEBUG - + local checksum_setting_name=checksum__etc_openvpn_scripts_route-up.d_90-ynh-hotspot 2023-09-30 14:36:11,045: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-09-30 14:36:11,047: DEBUG - ++ md5sum /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:11,065: DEBUG - + ynh_app_setting_set --app=hotspot --key=checksum__etc_openvpn_scripts_route-up.d_90-ynh-hotspot --value=d1d23e9a7e272d6005ed48d6cdb5a7fa 2023-09-30 14:36:11,069: DEBUG - + local _globalapp=hotspot 2023-09-30 14:36:11,857: DEBUG - + app=hotspot 2023-09-30 14:36:11,860: DEBUG - + [[ checksum__etc_openvpn_scripts_route-up.d_90-ynh-hotspot =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:11,865: DEBUG - + ynh_app_setting set hotspot checksum__etc_openvpn_scripts_route-up.d_90-ynh-hotspot d1d23e9a7e272d6005ed48d6cdb5a7fa 2023-09-30 14:36:12,504: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:12,507: DEBUG - + unset backup_file_checksum 2023-09-30 14:36:12,511: DEBUG - + ynh_add_config --template=../conf/openvpn_90-hotspot --destination=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:12,846: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/openvpn_90-hotspot ']' 2023-09-30 14:36:12,853: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/openvpn_90-hotspot 2023-09-30 14:36:12,856: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:12,948: DEBUG - + local checksum_setting_name=checksum__etc_openvpn_scripts_route-down.d_90-ynh-hotspot 2023-09-30 14:36:12,953: DEBUG - ++ ynh_app_setting_get --app=hotspot --key=checksum__etc_openvpn_scripts_route-down.d_90-ynh-hotspot 2023-09-30 14:36:12,957: DEBUG - ++ local _globalapp=hotspot 2023-09-30 14:36:13,277: DEBUG - ++ app=hotspot 2023-09-30 14:36:13,279: DEBUG - ++ [[ checksum__etc_openvpn_scripts_route-down.d_90-ynh-hotspot =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:13,283: DEBUG - ++ ynh_app_setting get hotspot checksum__etc_openvpn_scripts_route-down.d_90-ynh-hotspot 2023-09-30 14:36:13,886: DEBUG - + local checksum_value= 2023-09-30 14:36:13,892: DEBUG - + backup_file_checksum= 2023-09-30 14:36:13,895: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:13,897: DEBUG - + touch /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:13,902: DEBUG - + chown root:root /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:13,922: DEBUG - + chmod 640 /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:13,945: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf/../conf/openvpn_90-hotspot /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:13,976: DEBUG - + _ynh_apply_default_permissions /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:13,979: DEBUG - + local target=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:13,986: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-09-30 14:36:13,989: DEBUG - ++ tr -d '<>= ' 2023-09-30 14:36:14,163: DEBUG - ++ '[' '!' -e '' ']' 2023-09-30 14:36:14,168: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json ']' 2023-09-30 14:36:14,175: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:36:14,178: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:36:14,180: DEBUG - ++ grep -q '\.json$' 2023-09-30 14:36:14,191: DEBUG - ++ jq .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json --raw-output 2023-09-30 14:36:14,848: DEBUG - + local ynh_requirement=4.3.2 2023-09-30 14:36:14,918: DEBUG - + dpkg --compare-versions 1.0 ge 2 2023-09-30 14:36:14,922: DEBUG - + '[' -z 4.3.2 ']' 2023-09-30 14:36:14,925: DEBUG - + '[' 4.3.2 == null ']' 2023-09-30 14:36:14,928: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2023-09-30 14:36:14,931: DEBUG - + chmod o-rwx /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:14,935: DEBUG - + chmod g-w /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:14,940: DEBUG - + chown -R root:root /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:14,958: DEBUG - + ynh_system_user_exists hotspot 2023-09-30 14:36:15,054: DEBUG - + getent passwd hotspot 2023-09-30 14:36:15,068: DEBUG - + chown hotspot:hotspot /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:15,083: DEBUG - + echo /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:15,086: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-09-30 14:36:15,102: DEBUG - + ynh_replace_vars --file=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:15,207: DEBUG - + test -n '' 2023-09-30 14:36:15,210: DEBUG - + test -n hotspot 2023-09-30 14:36:15,214: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=hotspot --target_file=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:15,927: DEBUG - + sed --in-place $'s\001__NAME__\001hotspot\001g' /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:15,946: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=hotspot --target_file=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:16,778: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001hotspot\001g' /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:16,800: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=hotspot --target_file=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:17,537: DEBUG - + sed --in-place $'s\001__USER__\001hotspot\001g' /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:17,552: DEBUG - + test -n '' 2023-09-30 14:36:17,557: DEBUG - + dpkg --compare-versions 1.0 lt 2 2023-09-30 14:36:17,575: DEBUG - + test -n 7.4 2023-09-30 14:36:17,582: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:18,517: DEBUG - + sed --in-place $'s\001__PHPVERSION__\0017.4\001g' /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:18,546: DEBUG - + test -n '' 2023-09-30 14:36:18,563: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:18,571: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2023-09-30 14:36:18,575: DEBUG - ++ sort --unique 2023-09-30 14:36:18,600: DEBUG - + uniques_vars=('service_name') 2023-09-30 14:36:18,607: DEBUG - + local delimit=@ 2023-09-30 14:36:18,611: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:18,614: DEBUG - + [[ -v service_name ]] 2023-09-30 14:36:18,616: DEBUG - + match_string=__SERVICE_NAME__ 2023-09-30 14:36:18,618: DEBUG - + match_string=__SERVICE_NAME__ 2023-09-30 14:36:18,620: DEBUG - + replace_string=ynh-hotspot 2023-09-30 14:36:18,624: DEBUG - + replace_string=ynh-hotspot 2023-09-30 14:36:18,627: DEBUG - + replace_string=ynh-hotspot 2023-09-30 14:36:18,630: DEBUG - + sed --in-place s@__SERVICE_NAME__@ynh-hotspot@g /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:18,634: DEBUG - + ynh_store_file_checksum --file=/etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:18,648: DEBUG - + update_only=0 2023-09-30 14:36:18,803: DEBUG - + local checksum_setting_name=checksum__etc_openvpn_scripts_route-down.d_90-ynh-hotspot 2023-09-30 14:36:18,816: DEBUG - ++ md5sum /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:18,822: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-09-30 14:36:18,842: DEBUG - + ynh_app_setting_set --app=hotspot --key=checksum__etc_openvpn_scripts_route-down.d_90-ynh-hotspot --value=d1d23e9a7e272d6005ed48d6cdb5a7fa 2023-09-30 14:36:18,847: DEBUG - + local _globalapp=hotspot 2023-09-30 14:36:19,487: DEBUG - + app=hotspot 2023-09-30 14:36:19,492: DEBUG - + [[ checksum__etc_openvpn_scripts_route-down.d_90-ynh-hotspot =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:19,495: DEBUG - + ynh_app_setting set hotspot checksum__etc_openvpn_scripts_route-down.d_90-ynh-hotspot d1d23e9a7e272d6005ed48d6cdb5a7fa 2023-09-30 14:36:20,200: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:20,204: DEBUG - + unset backup_file_checksum 2023-09-30 14:36:20,208: DEBUG - + chmod 0755 /etc/openvpn/scripts/route-up.d/90-ynh-hotspot 2023-09-30 14:36:20,222: DEBUG - + chmod 0755 /etc/openvpn/scripts/route-down.d/90-ynh-hotspot 2023-09-30 14:36:20,766: INFO - [############+.......] > Configuring hostapd... 2023-09-30 14:36:20,781: DEBUG - + systemctl disable hostapd --quiet 2023-09-30 14:36:23,194: DEBUG - insserv: warning: current start runlevel(s) (empty) of script `hostapd' overrides LSB defaults (2 3 4 5). 2023-09-30 14:36:23,197: DEBUG - insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `hostapd' overrides LSB defaults (0 1 6). 2023-09-30 14:36:26,722: DEBUG - insserv: warning: current start runlevel(s) (empty) of script `hostapd' overrides LSB defaults (2 3 4 5). 2023-09-30 14:36:26,724: DEBUG - insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `hostapd' overrides LSB defaults (0 1 6). 2023-09-30 14:36:30,988: DEBUG - + systemctl stop hostapd 2023-09-30 14:36:31,053: DEBUG - + systemctl unmask hostapd 2023-09-30 14:36:33,098: DEBUG - + [[ -n wlx6cfdb9aac97e ]] 2023-09-30 14:36:33,100: DEBUG - + configure_hostapd 2023-09-30 14:36:33,102: DEBUG - + [[ 1 -eq 1 ]] 2023-09-30 14:36:33,103: DEBUG - + sec_comment= 2023-09-30 14:36:33,113: DEBUG - + ynh_add_config --template=/etc/hostapd/hotspot/hostapd.conf.tpl --destination=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:33,426: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf//etc/hostapd/hotspot/hostapd.conf.tpl ']' 2023-09-30 14:36:33,430: DEBUG - + '[' -f /etc/hostapd/hotspot/hostapd.conf.tpl ']' 2023-09-30 14:36:33,433: DEBUG - + template_path=/etc/hostapd/hotspot/hostapd.conf.tpl 2023-09-30 14:36:33,435: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:33,526: DEBUG - + local checksum_setting_name=checksum__etc_hostapd_hotspot_hostapd.conf 2023-09-30 14:36:33,533: DEBUG - ++ ynh_app_setting_get --app=hotspot --key=checksum__etc_hostapd_hotspot_hostapd.conf 2023-09-30 14:36:33,537: DEBUG - ++ local _globalapp=hotspot 2023-09-30 14:36:33,855: DEBUG - ++ app=hotspot 2023-09-30 14:36:33,861: DEBUG - ++ [[ checksum__etc_hostapd_hotspot_hostapd.conf =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:33,866: DEBUG - ++ ynh_app_setting get hotspot checksum__etc_hostapd_hotspot_hostapd.conf 2023-09-30 14:36:34,490: DEBUG - + local checksum_value= 2023-09-30 14:36:34,493: DEBUG - + backup_file_checksum= 2023-09-30 14:36:34,496: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:34,500: DEBUG - + touch /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:34,508: DEBUG - + chown root:root /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:34,526: DEBUG - + chmod 640 /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:34,539: DEBUG - + cp -f /etc/hostapd/hotspot/hostapd.conf.tpl /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:34,563: DEBUG - + _ynh_apply_default_permissions /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:34,569: DEBUG - + local target=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:34,581: DEBUG - ++ tr -d '<>= ' 2023-09-30 14:36:34,583: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-09-30 14:36:34,769: DEBUG - ++ '[' '!' -e '' ']' 2023-09-30 14:36:34,772: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json ']' 2023-09-30 14:36:34,777: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:36:34,780: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:36:34,783: DEBUG - ++ grep -q '\.json$' 2023-09-30 14:36:34,796: DEBUG - ++ jq .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json --raw-output 2023-09-30 14:36:35,439: DEBUG - + local ynh_requirement=4.3.2 2023-09-30 14:36:35,483: DEBUG - + dpkg --compare-versions 1.0 ge 2 2023-09-30 14:36:35,487: DEBUG - + '[' -z 4.3.2 ']' 2023-09-30 14:36:35,494: DEBUG - + '[' 4.3.2 == null ']' 2023-09-30 14:36:35,498: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2023-09-30 14:36:35,501: DEBUG - + chmod o-rwx /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:35,520: DEBUG - + chmod g-w /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:35,534: DEBUG - + chown -R root:root /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:35,548: DEBUG - + ynh_system_user_exists hotspot 2023-09-30 14:36:35,653: DEBUG - + getent passwd hotspot 2023-09-30 14:36:35,673: DEBUG - + chown hotspot:hotspot /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:35,689: DEBUG - + echo /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:35,692: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-09-30 14:36:35,711: DEBUG - + ynh_replace_vars --file=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:35,826: DEBUG - + test -n '' 2023-09-30 14:36:35,831: DEBUG - + test -n hotspot 2023-09-30 14:36:35,836: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=hotspot --target_file=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:36,497: DEBUG - + sed --in-place $'s\001__NAME__\001hotspot\001g' /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:36,516: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=hotspot --target_file=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:37,165: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001hotspot\001g' /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:37,194: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=hotspot --target_file=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:37,805: DEBUG - + sed --in-place $'s\001__USER__\001hotspot\001g' /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:37,831: DEBUG - + test -n '' 2023-09-30 14:36:37,835: DEBUG - + dpkg --compare-versions 1.0 lt 2 2023-09-30 14:36:37,856: DEBUG - + test -n 7.4 2023-09-30 14:36:37,866: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,614: DEBUG - + sed --in-place $'s\001__PHPVERSION__\0017.4\001g' /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,634: DEBUG - + test -n '' 2023-09-30 14:36:38,649: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,655: DEBUG - ++ sort --unique 2023-09-30 14:36:38,658: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2023-09-30 14:36:38,682: DEBUG - + uniques_vars=('sec_comment' 'wifi_channel' 'wifi_device' 'wifi_passphrase' 'wifi_ssid') 2023-09-30 14:36:38,691: DEBUG - + local delimit=@ 2023-09-30 14:36:38,698: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:38,701: DEBUG - + [[ -v sec_comment ]] 2023-09-30 14:36:38,704: DEBUG - + match_string=__SEC_COMMENT__ 2023-09-30 14:36:38,706: DEBUG - + match_string=__SEC_COMMENT__ 2023-09-30 14:36:38,709: DEBUG - + replace_string= 2023-09-30 14:36:38,711: DEBUG - + replace_string= 2023-09-30 14:36:38,714: DEBUG - + replace_string= 2023-09-30 14:36:38,719: DEBUG - + sed --in-place s@__SEC_COMMENT__@@g /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,722: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:38,724: DEBUG - + [[ -v wifi_channel ]] 2023-09-30 14:36:38,727: DEBUG - + match_string=__WIFI_CHANNEL__ 2023-09-30 14:36:38,731: DEBUG - + match_string=__WIFI_CHANNEL__ 2023-09-30 14:36:38,733: DEBUG - + replace_string=6 2023-09-30 14:36:38,735: DEBUG - + replace_string=6 2023-09-30 14:36:38,737: DEBUG - + replace_string=6 2023-09-30 14:36:38,739: DEBUG - + sed --in-place s@__WIFI_CHANNEL__@6@g /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,807: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:38,814: DEBUG - + [[ -v wifi_device ]] 2023-09-30 14:36:38,816: DEBUG - + match_string=__WIFI_DEVICE__ 2023-09-30 14:36:38,818: DEBUG - + match_string=__WIFI_DEVICE__ 2023-09-30 14:36:38,821: DEBUG - + replace_string=wlx6cfdb9aac97e 2023-09-30 14:36:38,823: DEBUG - + replace_string=wlx6cfdb9aac97e 2023-09-30 14:36:38,825: DEBUG - + replace_string=wlx6cfdb9aac97e 2023-09-30 14:36:38,829: DEBUG - + sed --in-place s@__WIFI_DEVICE__@wlx6cfdb9aac97e@g /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,847: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:38,851: DEBUG - + [[ -v wifi_passphrase ]] 2023-09-30 14:36:38,855: DEBUG - + match_string=__WIFI_PASSPHRASE__ 2023-09-30 14:36:38,861: DEBUG - + match_string=__WIFI_PASSPHRASE__ 2023-09-30 14:36:38,863: DEBUG - + replace_string=********** 2023-09-30 14:36:38,866: DEBUG - + replace_string=********** 2023-09-30 14:36:38,868: DEBUG - + replace_string=********** 2023-09-30 14:36:38,870: DEBUG - + sed --in-place s@__WIFI_PASSPHRASE__@**********@g /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,887: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:38,892: DEBUG - + [[ -v wifi_ssid ]] 2023-09-30 14:36:38,896: DEBUG - + match_string=__WIFI_SSID__ 2023-09-30 14:36:38,901: DEBUG - + match_string=__WIFI_SSID__ 2023-09-30 14:36:38,904: DEBUG - + replace_string=BoulaiteWave 2023-09-30 14:36:38,907: DEBUG - + replace_string=BoulaiteWave 2023-09-30 14:36:38,910: DEBUG - + replace_string=BoulaiteWave 2023-09-30 14:36:38,912: DEBUG - + sed --in-place s@__WIFI_SSID__@BoulaiteWave@g /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,929: DEBUG - + ynh_store_file_checksum --file=/etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:38,950: DEBUG - + update_only=0 2023-09-30 14:36:39,136: DEBUG - + local checksum_setting_name=checksum__etc_hostapd_hotspot_hostapd.conf 2023-09-30 14:36:39,152: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-09-30 14:36:39,156: DEBUG - ++ md5sum /etc/hostapd/hotspot/hostapd.conf 2023-09-30 14:36:39,175: DEBUG - + ynh_app_setting_set --app=hotspot --key=checksum__etc_hostapd_hotspot_hostapd.conf --value=5418dfd025bcebf82407ed595daa593c 2023-09-30 14:36:39,178: DEBUG - + local _globalapp=hotspot 2023-09-30 14:36:39,966: DEBUG - + app=hotspot 2023-09-30 14:36:39,973: DEBUG - + [[ checksum__etc_hostapd_hotspot_hostapd.conf =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:39,975: DEBUG - + ynh_app_setting set hotspot checksum__etc_hostapd_hotspot_hostapd.conf 5418dfd025bcebf82407ed595daa593c 2023-09-30 14:36:41,127: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:41,129: DEBUG - + unset backup_file_checksum 2023-09-30 14:36:41,131: DEBUG - + configure_dnsmasq 2023-09-30 14:36:41,133: DEBUG - + ynh_add_config --template=/etc/dnsmasq.hotspot/dnsmasq.conf.tpl --destination=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:41,466: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/conf//etc/dnsmasq.hotspot/dnsmasq.conf.tpl ']' 2023-09-30 14:36:41,472: DEBUG - + '[' -f /etc/dnsmasq.hotspot/dnsmasq.conf.tpl ']' 2023-09-30 14:36:41,476: DEBUG - + template_path=/etc/dnsmasq.hotspot/dnsmasq.conf.tpl 2023-09-30 14:36:41,479: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:41,570: DEBUG - + local checksum_setting_name=checksum__etc_dnsmasq.d_hotspot.conf 2023-09-30 14:36:41,577: DEBUG - ++ ynh_app_setting_get --app=hotspot --key=checksum__etc_dnsmasq.d_hotspot.conf 2023-09-30 14:36:41,582: DEBUG - ++ local _globalapp=hotspot 2023-09-30 14:36:41,889: DEBUG - ++ app=hotspot 2023-09-30 14:36:41,894: DEBUG - ++ [[ checksum__etc_dnsmasq.d_hotspot.conf =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:41,898: DEBUG - ++ ynh_app_setting get hotspot checksum__etc_dnsmasq.d_hotspot.conf 2023-09-30 14:36:42,519: DEBUG - + local checksum_value= 2023-09-30 14:36:42,523: DEBUG - + backup_file_checksum= 2023-09-30 14:36:42,527: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:42,529: DEBUG - + touch /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:42,538: DEBUG - + chown root:root /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:42,558: DEBUG - + chmod 640 /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:42,571: DEBUG - + cp -f /etc/dnsmasq.hotspot/dnsmasq.conf.tpl /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:42,587: DEBUG - + _ynh_apply_default_permissions /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:42,593: DEBUG - + local target=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:42,604: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost 2023-09-30 14:36:42,608: DEBUG - ++ tr -d '<>= ' 2023-09-30 14:36:42,774: DEBUG - ++ '[' '!' -e '' ']' 2023-09-30 14:36:42,776: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json ']' 2023-09-30 14:36:42,779: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:36:42,782: DEBUG - ++ grep -q '\.json$' 2023-09-30 14:36:42,785: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json 2023-09-30 14:36:42,799: DEBUG - ++ jq .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_fv2los76/manifest.json --raw-output 2023-09-30 14:36:43,447: DEBUG - + local ynh_requirement=4.3.2 2023-09-30 14:36:43,455: DEBUG - + dpkg --compare-versions 1.0 ge 2 2023-09-30 14:36:43,480: DEBUG - + '[' -z 4.3.2 ']' 2023-09-30 14:36:43,495: DEBUG - + '[' 4.3.2 == null ']' 2023-09-30 14:36:43,497: DEBUG - + dpkg --compare-versions 4.3.2 ge 4.2 2023-09-30 14:36:43,510: DEBUG - + chmod o-rwx /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:43,534: DEBUG - + chmod g-w /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:43,555: DEBUG - + chown -R root:root /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:43,570: DEBUG - + ynh_system_user_exists hotspot 2023-09-30 14:36:43,667: DEBUG - + getent passwd hotspot 2023-09-30 14:36:43,680: DEBUG - + chown hotspot:hotspot /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:43,702: DEBUG - + echo /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:43,705: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system' 2023-09-30 14:36:43,719: DEBUG - + ynh_replace_vars --file=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:43,806: DEBUG - + test -n '' 2023-09-30 14:36:43,813: DEBUG - + test -n hotspot 2023-09-30 14:36:43,815: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=hotspot --target_file=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:44,499: DEBUG - + sed --in-place $'s\001__NAME__\001hotspot\001g' /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:44,519: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=hotspot --target_file=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:45,242: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001hotspot\001g' /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:45,268: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=hotspot --target_file=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:46,047: DEBUG - + sed --in-place $'s\001__USER__\001hotspot\001g' /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:46,054: DEBUG - + test -n '' 2023-09-30 14:36:46,055: DEBUG - + dpkg --compare-versions 1.0 lt 2 2023-09-30 14:36:46,076: DEBUG - + test -n 7.4 2023-09-30 14:36:46,078: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.4 --target_file=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:46,842: DEBUG - + sed --in-place $'s\001__PHPVERSION__\0017.4\001g' /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:46,877: DEBUG - + test -n '' 2023-09-30 14:36:46,887: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:46,890: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g' 2023-09-30 14:36:46,894: DEBUG - ++ sort --unique 2023-09-30 14:36:46,917: DEBUG - + uniques_vars=('wifi_device') 2023-09-30 14:36:46,921: DEBUG - + local delimit=@ 2023-09-30 14:36:46,924: DEBUG - + for one_var in "${uniques_vars[@]}" 2023-09-30 14:36:46,926: DEBUG - + [[ -v wifi_device ]] 2023-09-30 14:36:46,928: DEBUG - + match_string=__WIFI_DEVICE__ 2023-09-30 14:36:46,931: DEBUG - + match_string=__WIFI_DEVICE__ 2023-09-30 14:36:46,933: DEBUG - + replace_string=wlx6cfdb9aac97e 2023-09-30 14:36:46,935: DEBUG - + replace_string=wlx6cfdb9aac97e 2023-09-30 14:36:46,937: DEBUG - + replace_string=wlx6cfdb9aac97e 2023-09-30 14:36:46,942: DEBUG - + sed --in-place s@__WIFI_DEVICE__@wlx6cfdb9aac97e@g /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:46,946: DEBUG - + ynh_store_file_checksum --file=/etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:46,962: DEBUG - + update_only=0 2023-09-30 14:36:47,113: DEBUG - + local checksum_setting_name=checksum__etc_dnsmasq.d_hotspot.conf 2023-09-30 14:36:47,123: DEBUG - ++ cut '--delimiter= ' --fields=1 2023-09-30 14:36:47,125: DEBUG - ++ md5sum /etc/dnsmasq.d/hotspot.conf 2023-09-30 14:36:47,144: DEBUG - + ynh_app_setting_set --app=hotspot --key=checksum__etc_dnsmasq.d_hotspot.conf --value=99c782c2692b32d7c465355e638d6e2e 2023-09-30 14:36:47,147: DEBUG - + local _globalapp=hotspot 2023-09-30 14:36:47,965: DEBUG - + app=hotspot 2023-09-30 14:36:47,971: DEBUG - + [[ checksum__etc_dnsmasq.d_hotspot.conf =~ (unprotected|protected|skipped)_ ]] 2023-09-30 14:36:47,975: DEBUG - + ynh_app_setting set hotspot checksum__etc_dnsmasq.d_hotspot.conf 99c782c2692b32d7c465355e638d6e2e 2023-09-30 14:36:48,625: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:48,629: DEBUG - + unset backup_file_checksum 2023-09-30 14:36:48,633: DEBUG - + systemctl restart dnsmasq 2023-09-30 14:36:55,116: WARNING - Job for dnsmasq.service failed because the control process exited with error code. 2023-09-30 14:36:55,128: WARNING - See "systemctl status dnsmasq.service" and "journalctl -xe" for details. 2023-09-30 14:36:55,146: DEBUG - + ynh_exit_properly 2023-09-30 14:36:55,160: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]] 2023-09-30 14:36:55,691: DEBUG - + ynh_clean_setup 2023-09-30 14:36:55,695: DEBUG - + ynh_clean_check_starting 2023-09-30 14:36:55,698: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:55,701: DEBUG - + '[' -n '' ']' 2023-09-30 14:36:56,736: ERROR - Unable to install hotspot: An error occurred inside the app installation script