Pi-hole - installation probléme

Hello there,
i have a probléme to install, so i m using the latest Yunohost :slight_smile:

root@domaine:~# yunohost app install https://github.com/YunoHost-Apps/pihole_ynh  --verbose
Downloading...
Extracting...
Done
Checking required packages for pihole...
Available domains:
- domaine.fr
Choose a domain for the admin interface of Pi-hole (default: domaine.fr):
Choose a path for the admin interface of Pi-hole (default: /pihole):
Choose the Pi-hole administrator (must be an existing YunoHost user): user
Do you want to log queries ? [0 | 1] (default: 0):
Do you want to set Pi-hole as your DHCP server ? [0 | 1] (default: 0):
Executing script '/var/cache/yunohost/from_file/pihole_ynh-master/scripts/install'...
+ source _common.sh
++ n_install_dir=/opt/node_n
++ node_version_path=/opt/node_n/n/versions/node
++ export N_PREFIX=/opt/node_n
++ N_PREFIX=/opt/node_n
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ source _variables
++ app_depencencies='dhcpcd5 sqlite php5-sqlite idn2'
+ ynh_abort_if_errors
+ set -eu
+ trap ynh_exit_properly EXIT
+ domain=domaine.fr
+ path_url=/pihole
+ admin=user
+ query_logging=0
+ enable_dhcp=0
+ app=pihole
+ final_path=/var/www/pihole
+ test '!' -e /var/www/pihole
++ ynh_normalize_url_path /pihole
++ local path_url=/pihole
++ test -n /pihole
++ '[' / '!=' / ']'
++ '[' e == / ']'
++ echo /pihole
+ path_url=/pihole
+ ynh_webpath_available domaine.fr /pihole
+ local domain=domaine.fr
+ local path=/pihole
+ sudo yunohost domain url-available domaine.fr /pihole
True
+ ynh_webpath_register pihole domaine.fr /pihole
+ local app=pihole
+ local domain=domaine.fr
+ local path=/pihole
+ sudo yunohost app register-url pihole domaine.fr /pihole
+ ynh_app_setting_set pihole domain domaine.fr
+ sudo yunohost app setting pihole domain --value=domaine.fr --quiet
+ ynh_app_setting_set pihole path /pihole
+ sudo yunohost app setting pihole path --value=/pihole --quiet
+ ynh_app_setting_set pihole admin user
+ sudo yunohost app setting pihole admin --value=user --quiet
+ ynh_app_setting_set pihole query_logging 0
+ sudo yunohost app setting pihole query_logging --value=0 --quiet
+ ynh_app_setting_set pihole enable_dhcp 0
+ sudo yunohost app setting pihole enable_dhcp --value=0 --quiet
++ ynh_find_port 4711
++ local port=4711
++ test -n 4711
++ netcat -z 127.0.0.1 4711
++ echo 4711
+ port=4711
+ '[' 4711 -gt 4720 ']'
+ ynh_exec_fully_quiet yunohost firewall allow --no-upnp TCP 4711
+ eval yunohost firewall allow --no-upnp TCP 4711
++ yunohost firewall allow --no-upnp TCP 4711
+ ynh_app_setting_set pihole port 4711
+ sudo yunohost app setting pihole port --value=4711 --quiet
+ ynh_exec_fully_quiet yunohost firewall disallow Both 53 --no-reload
+ eval yunohost firewall disallow Both 53 --no-reload
++ yunohost firewall disallow Both 53 --no-reload
+ ynh_exec_fully_quiet yunohost firewall allow Both 53 --no-upnp
+ eval yunohost firewall allow Both 53 --no-upnp
++ yunohost firewall allow Both 53 --no-upnp
+ ynh_install_app_dependencies dhcpcd5 sqlite php5-sqlite idn2
+ local 'dependencies=dhcpcd5 sqlite php5-sqlite idn2'
+ local manifest_path=../manifest.json
+ '[' '!' -e ../manifest.json ']'
++ cut -d '"' -f 4
++ grep '\"version\": ' ../manifest.json
+ local version=3.3~ynh2
+ '[' 8 -eq 0 ']'
+ local dep_app=pihole
+ cat
+ ynh_package_install_from_equivs /tmp/pihole-ynh-deps.control
+ local controlfile=/tmp/pihole-ynh-deps.control
+ ynh_package_is_installed equivs
+ grep -c 'ok installed'
+ dpkg-query -W -f '${Status}' equivs
++ grep '^Package: ' /tmp/pihole-ynh-deps.control
++ cut '-d ' -f 2
+ local pkgname=pihole-ynh-deps
++ grep '^Version: ' /tmp/pihole-ynh-deps.control
++ cut '-d ' -f 2
+ local pkgversion=3.3~ynh2
+ [[ -z pihole-ynh-deps ]]
+ [[ -z 3.3~ynh2 ]]
+ ynh_package_update
+ ynh_apt update
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq update
Warning: W: GPG error: http://httpredir.debian.org jessie-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
++ mktemp -d
+ local TMPDIR=/tmp/tmp.qdyPN0F56R
+ cp /tmp/pihole-ynh-deps.control /tmp/tmp.qdyPN0F56R/control
+ cd /tmp/tmp.qdyPN0F56R
+ equivs-build ./control
Warning: dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
+ sudo dpkg --force-depends -i ./pihole-ynh-deps_3.3~ynh2_all.deb
(Reading database ... 57578 files and directories currently installed.)
Preparing to unpack .../pihole-ynh-deps_3.3~ynh2_all.deb ...
Unpacking pihole-ynh-deps (3.3~ynh2) over (3.3~ynh2) ...
Setting up pihole-ynh-deps (3.3~ynh2) ...
+ ynh_package_install -f
+ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
+ [[ -n /tmp/tmp.qdyPN0F56R ]]
+ rm -rf /tmp/tmp.qdyPN0F56R
+ ynh_package_is_installed pihole-ynh-deps
+ dpkg-query -W -f '${Status}' pihole-ynh-deps
+ grep -c 'ok installed'
+ rm /tmp/pihole-ynh-deps.control
+ ynh_app_setting_set pihole apt_dependencies dhcpcd5 sqlite php5-sqlite idn2
+ sudo yunohost app setting pihole apt_dependencies --value=dhcpcd5 --quiet
+ ynh_app_setting_set pihole final_path /var/www/pihole
+ sudo yunohost app setting pihole final_path --value=/var/www/pihole --quiet
+ pihole_local_repo=/etc/.pihole
+ ynh_setup_source /etc/.pihole
+ local dest_dir=/etc/.pihole
+ local src_id=app
++ cut -d= -f2-
++ grep SOURCE_URL= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
+ local src_url=https://github.com/pi-hole/pi-hole/archive/v3.3.tar.gz
++ cut -d= -f2-
++ grep SOURCE_SUM= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
+ local src_sum=6d4eb0905cf5eb03f16cd8080a66c6f4
++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_sumprg=md5sum
++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_format=tar.gz
++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_in_subdir=true
++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/app.src
++ cut -d= -f2-
+ local src_filename=
+ src_sumprg=md5sum
+ src_in_subdir=true
+ src_format=tar.gz
++ echo tar.gz
++ tr '[:upper:]' '[:lower:]'
+ src_format=tar.gz
+ '[' '' = '' ']'
+ src_filename=app.tar.gz
+ local local_src=/opt/yunohost-apps-src/pihole/app.tar.gz
+ test -e /opt/yunohost-apps-src/pihole/app.tar.gz
+ wget -nv -O app.tar.gz https://github.com/pi-hole/pi-hole/archive/v3.3.tar.gz
Warning: 2018-03-24 22:46:09 URL:https://codeload.github.com/pi-hole/pi-hole/tar.gz/v3.3 [116435] -> "app.tar.gz" [1]
+ echo '6d4eb0905cf5eb03f16cd8080a66c6f4 app.tar.gz'
+ md5sum -c --status
+ mkdir -p /etc/.pihole
+ '[' tar.gz = zip ']'
+ local strip=
+ true
+ strip='--strip-components 1'
+ [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
+ tar -xf app.tar.gz -C /etc/.pihole --strip-components 1
++ find /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/patches/ -type f -name 'app-*.patch'
++ wc -l
+ ((  0 > 0  ))
+ test -e /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/extra_files/app
+ ynh_setup_source /var/www/pihole admin_dashboard
+ local dest_dir=/var/www/pihole
+ local src_id=admin_dashboard
++ grep SOURCE_URL= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_url=https://github.com/pi-hole/AdminLTE/archive/v3.3.tar.gz
++ grep SOURCE_SUM= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_sum=23368537fa576480e45f625b5e1a7cd7
++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_sumprg=md5sum
++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_format=tar.gz
++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_in_subdir=true
++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/admin_dashboard.src
++ cut -d= -f2-
+ local src_filename=
+ src_sumprg=md5sum
+ src_in_subdir=true
+ src_format=tar.gz
++ echo tar.gz
++ tr '[:upper:]' '[:lower:]'
+ src_format=tar.gz
+ '[' '' = '' ']'
+ src_filename=admin_dashboard.tar.gz
+ local local_src=/opt/yunohost-apps-src/pihole/admin_dashboard.tar.gz
+ test -e /opt/yunohost-apps-src/pihole/admin_dashboard.tar.gz
+ wget -nv -O admin_dashboard.tar.gz https://github.com/pi-hole/AdminLTE/archive/v3.3.tar.gz
Warning: 2018-03-24 22:46:14 URL:https://codeload.github.com/pi-hole/AdminLTE/tar.gz/v3.3 [2280252] -> "admin_dashboard.tar.gz" [1]
+ echo '23368537fa576480e45f625b5e1a7cd7 admin_dashboard.tar.gz'
+ md5sum -c --status
+ mkdir -p /var/www/pihole
+ '[' tar.gz = zip ']'
+ local strip=
+ true
+ strip='--strip-components 1'
+ [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
+ tar -xf admin_dashboard.tar.gz -C /var/www/pihole --strip-components 1
++ find /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/patches/ -type f -name 'admin_dashboard-*.patch'
++ wc -l
+ ((  0 > 0  ))
+ test -e /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/extra_files/admin_dashboard
+ '[' /pihole '!=' / ']'
+ ynh_replace_string '^#sub_path_only' '' ../conf/nginx.conf
+ local delimit=@
+ local 'match_string=^#sub_path_only'
+ local replace_string=
+ local workfile=../conf/nginx.conf
+ match_string='^#sub_path_only'
+ replace_string=
+ sudo sed --in-place 's@^#sub_path_only@@g' ../conf/nginx.conf
+ ynh_add_nginx_config
+ finalnginxconf=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ ynh_backup_if_checksum_is_different /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local file=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local checksum_setting_name=checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf
++ ynh_app_setting_get pihole checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf
++ sudo yunohost app setting pihole checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf --output-as plain --quiet
+ local checksum_value=
+ '[' -n '' ']'
+ sudo cp ../conf/nginx.conf /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n /pihole
+ local path_url_slash_less=/pihole
+ ynh_replace_string __PATH__/ /pihole/ /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__PATH__/
+ local replace_string=/pihole/
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__PATH__/
+ replace_string=/pihole/
+ sudo sed --in-place s@__PATH__/@/pihole/@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ ynh_replace_string __PATH__ /pihole /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__PATH__
+ local replace_string=/pihole
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__PATH__
+ replace_string=/pihole
+ sudo sed --in-place s@__PATH__@/pihole@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n domaine.fr
+ ynh_replace_string __DOMAIN__ domaine.fr /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__DOMAIN__
+ local replace_string=domaine.fr
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__DOMAIN__
+ replace_string=domaine.fr
+ sudo sed --in-place s@__DOMAIN__@domaine.fr@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n 4711
+ ynh_replace_string __PORT__ 4711 /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__PORT__
+ local replace_string=4711
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__PORT__
+ replace_string=4711
+ sudo sed --in-place s@__PORT__@4711@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n pihole
+ ynh_replace_string __NAME__ pihole /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__NAME__
+ local replace_string=pihole
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__NAME__
+ replace_string=pihole
+ sudo sed --in-place s@__NAME__@pihole@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ test -n /var/www/pihole
+ ynh_replace_string __FINALPATH__ /var/www/pihole /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local delimit=@
+ local match_string=__FINALPATH__
+ local replace_string=/var/www/pihole
+ local workfile=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ match_string=__FINALPATH__
+ replace_string=/var/www/pihole
+ sudo sed --in-place s@__FINALPATH__@/var/www/pihole@g /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ ynh_store_file_checksum /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local checksum_setting_name=checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf
++ sudo md5sum /etc/nginx/conf.d/domaine.fr.d/pihole.conf
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf 2d6482d203a217153efb124d940ddbbd
+ sudo yunohost app setting pihole checksum__etc_nginx_conf.d_domaine.fr.d_pihole.conf --value=2d6482d203a217153efb124d940ddbbd --quiet
+ sudo systemctl reload nginx
+ ynh_system_user_create pihole
+ ynh_system_user_exists pihole
+ getent passwd pihole
+ '[' 1 -ge 2 ']'
+ local user_home_dir=--no-create-home
+ sudo useradd --no-create-home --system --user-group pihole --shell /usr/sbin/nologin
+ ynh_add_fpm_config
+ finalphpconf=/etc/php5/fpm/pool.d/pihole.conf
+ ynh_backup_if_checksum_is_different /etc/php5/fpm/pool.d/pihole.conf
+ local file=/etc/php5/fpm/pool.d/pihole.conf
+ local checksum_setting_name=checksum__etc_php5_fpm_pool.d_pihole.conf
++ ynh_app_setting_get pihole checksum__etc_php5_fpm_pool.d_pihole.conf
++ sudo yunohost app setting pihole checksum__etc_php5_fpm_pool.d_pihole.conf --output-as plain --quiet
+ local checksum_value=
+ '[' -n '' ']'
+ sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/pihole.conf
+ ynh_replace_string __NAMETOCHANGE__ pihole /etc/php5/fpm/pool.d/pihole.conf
+ local delimit=@
+ local match_string=__NAMETOCHANGE__
+ local replace_string=pihole
+ local workfile=/etc/php5/fpm/pool.d/pihole.conf
+ match_string=__NAMETOCHANGE__
+ replace_string=pihole
+ sudo sed --in-place s@__NAMETOCHANGE__@pihole@g /etc/php5/fpm/pool.d/pihole.conf
+ ynh_replace_string __FINALPATH__ /var/www/pihole /etc/php5/fpm/pool.d/pihole.conf
+ local delimit=@
+ local match_string=__FINALPATH__
+ local replace_string=/var/www/pihole
+ local workfile=/etc/php5/fpm/pool.d/pihole.conf
+ match_string=__FINALPATH__
+ replace_string=/var/www/pihole
+ sudo sed --in-place s@__FINALPATH__@/var/www/pihole@g /etc/php5/fpm/pool.d/pihole.conf
+ ynh_replace_string __USER__ pihole /etc/php5/fpm/pool.d/pihole.conf
+ local delimit=@
+ local match_string=__USER__
+ local replace_string=pihole
+ local workfile=/etc/php5/fpm/pool.d/pihole.conf
+ match_string=__USER__
+ replace_string=pihole
+ sudo sed --in-place s@__USER__@pihole@g /etc/php5/fpm/pool.d/pihole.conf
+ sudo chown root: /etc/php5/fpm/pool.d/pihole.conf
+ ynh_store_file_checksum /etc/php5/fpm/pool.d/pihole.conf
+ local checksum_setting_name=checksum__etc_php5_fpm_pool.d_pihole.conf
++ sudo md5sum /etc/php5/fpm/pool.d/pihole.conf
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_php5_fpm_pool.d_pihole.conf e38dff768396633b3da6ca0e9282395e
+ sudo yunohost app setting pihole checksum__etc_php5_fpm_pool.d_pihole.conf --value=e38dff768396633b3da6ca0e9282395e --quiet
+ '[' -e ../conf/php-fpm.ini ']'
+ finalphpini=/etc/php5/fpm/conf.d/20-pihole.ini
+ ynh_backup_if_checksum_is_different /etc/php5/fpm/conf.d/20-pihole.ini
+ local file=/etc/php5/fpm/conf.d/20-pihole.ini
+ local checksum_setting_name=checksum__etc_php5_fpm_conf.d_20-pihole.ini
++ ynh_app_setting_get pihole checksum__etc_php5_fpm_conf.d_20-pihole.ini
++ sudo yunohost app setting pihole checksum__etc_php5_fpm_conf.d_20-pihole.ini --output-as plain --quiet
+ local checksum_value=
+ '[' -n '' ']'
+ sudo cp ../conf/php-fpm.ini /etc/php5/fpm/conf.d/20-pihole.ini
+ sudo chown root: /etc/php5/fpm/conf.d/20-pihole.ini
+ ynh_store_file_checksum /etc/php5/fpm/conf.d/20-pihole.ini
+ local checksum_setting_name=checksum__etc_php5_fpm_conf.d_20-pihole.ini
++ sudo md5sum /etc/php5/fpm/conf.d/20-pihole.ini
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_php5_fpm_conf.d_20-pihole.ini 7efbf4605d50f2513e7b73e2b155c0e6
+ sudo yunohost app setting pihole checksum__etc_php5_fpm_conf.d_20-pihole.ini --value=7efbf4605d50f2513e7b73e2b155c0e6 --quiet
+ sudo systemctl reload php5-fpm
+ pihole_storage=/etc/pihole
+ mkdir -p /etc/pihole
+ chown pihole: -R /etc/pihole
+ pihole_dir=/opt/pihole
+ mkdir -p /opt/pihole
+ cp -a /etc/.pihole/gravity.sh /opt/pihole/
+ cp -a /etc/.pihole/advanced/Scripts/chronometer.sh /etc/.pihole/advanced/Scripts/list.sh /etc/.pihole/advanced/Scripts/piholeCheckout.sh /etc/.pihole/advanced/Scripts/piholeDebug.sh /etc/.pihole/advanced/Scripts/piholeLogFlush.sh /etc/.pihole/advanced/Scripts/setupLCD.sh /etc/.pihole/advanced/Scripts/updatecheck.sh /etc/.pihole/advanced/Scripts/update.sh /etc/.pihole/advanced/Scripts/version.sh /etc/.pihole/advanced/Scripts/webpage.sh /opt/pihole/
+ cp -a /etc/.pihole/advanced/Scripts/COL_TABLE /opt/pihole/
+ cp -a /etc/.pihole/pihole /usr/local/bin/
+ cp -a /etc/.pihole/advanced/bash-completion/pihole /etc/bash_completion.d/pihole
+ touch /var/log/pihole.log
+ chmod 644 /var/log/pihole.log
++ grep DNSMASQ_USER= /etc/init.d/dnsmasq
++ cut '-d"' -f2
+ dnsmasq_user=dnsmasq
+ chown dnsmasq:root /var/log/pihole.log
+ cp /etc/.pihole/advanced/pihole.sudo /etc/sudoers.d/pihole
+ echo 'pihole ALL=NOPASSWD: /usr/local/bin/pihole'
+ chmod 0440 /etc/sudoers.d/pihole
+ cp /etc/.pihole/advanced/logrotate /etc/pihole/logrotate
+ sed -i '/# su #/d;' /etc/pihole/logrotate
++ mktemp -d
+ FTL_temp_path=/tmp/tmp.4s1bfRR5GG
+ ynh_setup_source /tmp/tmp.4s1bfRR5GG FTL
+ local dest_dir=/tmp/tmp.4s1bfRR5GG
+ local src_id=FTL
++ grep SOURCE_URL= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/FTL.src
++ cut -d= -f2-
+ local src_url=https://github.com/pi-hole/FTL/archive/v2.13.2.tar.gz
++ grep SOURCE_SUM= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/FTL.src
++ cut -d= -f2-
+ local src_sum=07383d2b3de1ef31526b090603e783b3
++ cut -d= -f2-
++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/FTL.src
+ local src_sumprg=md5sum
++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/FTL.src
++ cut -d= -f2-
+ local src_format=tar.gz
++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/FTL.src
++ cut -d= -f2-
+ local src_in_subdir=true
++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../conf/FTL.src
++ cut -d= -f2-
+ local src_filename=
+ src_sumprg=md5sum
+ src_in_subdir=true
+ src_format=tar.gz
++ echo tar.gz
++ tr '[:upper:]' '[:lower:]'
+ src_format=tar.gz
+ '[' '' = '' ']'
+ src_filename=FTL.tar.gz
+ local local_src=/opt/yunohost-apps-src/pihole/FTL.tar.gz
+ test -e /opt/yunohost-apps-src/pihole/FTL.tar.gz
+ wget -nv -O FTL.tar.gz https://github.com/pi-hole/FTL/archive/v2.13.2.tar.gz
Warning: 2018-03-24 22:46:34 URL:https://codeload.github.com/pi-hole/FTL/tar.gz/v2.13.2 [2055246] -> "FTL.tar.gz" [1]
+ echo '07383d2b3de1ef31526b090603e783b3 FTL.tar.gz'
+ md5sum -c --status
+ mkdir -p /tmp/tmp.4s1bfRR5GG
+ '[' tar.gz = zip ']'
+ local strip=
+ true
+ strip='--strip-components 1'
+ [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
+ tar -xf FTL.tar.gz -C /tmp/tmp.4s1bfRR5GG --strip-components 1
++ find /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/patches/ -type f -name 'FTL-*.patch'
++ wc -l
+ ((  0 > 0  ))
+ test -e /var/cache/yunohost/from_file/pihole_ynh-master/scripts/../sources/extra_files/FTL
+ cd /tmp/tmp.4s1bfRR5GG
+ ynh_exec_warn_less make
+ eval make
++ make
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
Making FTL version on branch  -  ()
mkdir -p obj
gcc -c -o obj/main.o main.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/structs.o structs.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/log.o log.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/daemon.o daemon.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/parser.o parser.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/signals.o signals.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/socket.o socket.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/request.o request.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/grep.o grep.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/setupVars.o setupVars.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/args.o args.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/flush.o flush.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/threads.o threads.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/gc.o gc.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/config.o config.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/database.o database.c -g3 -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
gcc -c -o obj/sqlite3.o sqlite3.c -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB
sqlite3.c: In function ‘exprAnalyze’:
sqlite3.c:131527:39: warning: ‘pLeft’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         pNewTerm->u.leftColumn = pLeft->iColumn;
                                       ^
sqlite3.c:93128:39: warning: ‘pRight’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   return p ? exprDup(db, p, flags, 0) : 0;
                                       ^
sqlite3.c:131506:11: note: ‘pRight’ was declared here
     Expr *pRight, *pLeft;
           ^
sqlite3.c:131529:28: warning: ‘eOp2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         pNewTerm->eMatchOp = eOp2;
                            ^
gcc -v -I. -Wall -Wextra -Wno-unused-parameter -D_FILE_OFFSET_BITS=64 -fstack-protector -D_FORTIFY_SOURCE=2 -O3 -Wl,-z,relro,-z,now -pie -fPIE -rdynamic -fno-omit-frame-pointer   -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_MEMORYDB -o pihole-FTL obj/main.o obj/structs.o obj/log.o obj/daemon.o obj/parser.o obj/signals.o obj/socket.o obj/request.o obj/grep.o obj/setupVars.o obj/args.o obj/flush.o obj/threads.o obj/gc.o obj/config.o obj/database.o obj/sqlite3.o -pthread
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10+deb8u1' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Raspbian 4.9.2-10+deb8u1)
COMPILER_PATH=/usr/lib/gcc/arm-linux-gnueabihf/4.9/:/usr/lib/gcc/arm-linux-gnueabihf/4.9/:/usr/lib/gcc/arm-linux-gnueabihf/:/usr/lib/gcc/arm-linux-gnueabihf/4.9/:/usr/lib/gcc/arm-linux-gnueabihf/
LIBRARY_PATH=/usr/lib/gcc/arm-linux-gnueabihf/4.9/:/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/:/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../:/lib/arm-linux-gnueabihf/:/lib/:/usr/lib/arm-linux-gnueabihf/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-I' '.' '-Wall' '-Wextra' '-Wno-unused-parameter' '-D' '_FILE_OFFSET_BITS=64' '-fstack-protector' '-D' '_FORTIFY_SOURCE=2' '-O3' '-pie' '-fPIE' '-rdynamic' '-fno-omit-frame-pointer' '-D' 'SQLITE_OMIT_LOAD_EXTENSION' '-D' 'SQLITE_DEFAULT_MEMSTATUS=0' '-D' 'SQLITE_OMIT_DEPRECATED' '-D' 'SQLITE_OMIT_PROGRESS_CALLBACK' '-D' 'SQLITE_OMIT_MEMORYDB' '-o' 'pihole-FTL' '-pthread' '-march=armv6' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu'
 /usr/lib/gcc/arm-linux-gnueabihf/4.9/collect2 -plugin /usr/lib/gcc/arm-linux-gnueabihf/4.9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccwMYgL6.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --sysroot=/ --build-id --eh-frame-hdr -export-dynamic -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu -m armelf_linux_eabi -pie -o pihole-FTL /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/Scrt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtbeginS.o -L/usr/lib/gcc/arm-linux-gnueabihf/4.9 -L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../.. -L/lib/arm-linux-gnueabihf -L/usr/lib/arm-linux-gnueabihf -z relro -z now obj/main.o obj/structs.o obj/log.o obj/daemon.o obj/parser.o obj/signals.o obj/socket.o obj/request.o obj/grep.o obj/setupVars.o obj/args.o obj/flush.o obj/threads.o obj/gc.o obj/config.o obj/database.o obj/sqlite3.o -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabihf/4.9/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../arm-linux-gnueabihf/crtn.o
+ ynh_exec_warn_less make install
+ eval make install
++ make install
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
install -m 0755 pihole-FTL /usr/bin
touch /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
chown pihole:pihole /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port
chmod 0644 /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
+ ynh_secure_remove /tmp/tmp.4s1bfRR5GG
+ local path_to_remove=/tmp/tmp.4s1bfRR5GG
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /tmp/tmp\.4s1bfRR5GG ]]
+ [[ /tmp/tmp.4s1bfRR5GG =~ ^/[[:alnum:]]+$ ]]
+ [[ G = \/ ]]
+ '[' -e /tmp/tmp.4s1bfRR5GG ']'
+ sudo rm -R /tmp/tmp.4s1bfRR5GG
+ cp ../conf/pihole-FTL.conf /etc/pihole
+ cp -a /etc/.pihole/advanced/pihole-FTL.service /etc/init.d/pihole-FTL
+ chmod +x /etc/init.d/pihole-FTL
+ ynh_exec_warn_less systemctl enable pihole-FTL
+ eval systemctl enable pihole-FTL
++ systemctl enable pihole-FTL
Synchronizing state for pihole-FTL.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d pihole-FTL defaults
Executing /usr/sbin/update-rc.d pihole-FTL enable
+ setupVars=/etc/pihole/setupVars.conf
++ route
++ grep default
++ head -n1
++ awk '{print $8;}'
+ main_iface=eth0
+ echo PIHOLE_INTERFACE=eth0
+ echo IPV4_ADDRESS=127.0.0.1
+ echo IPV6_ADDRESS=
+ echo PIHOLE_DNS_1=
+ echo PIHOLE_DNS_2=
+ '[' 0 -eq 1 ']'
+ query_logging=false
+ echo QUERY_LOGGING=false
+ echo INSTALL_WEB=true
+ ynh_store_file_checksum /etc/pihole/setupVars.conf
+ local checksum_setting_name=checksum__etc_pihole_setupVars.conf
++ sudo md5sum /etc/pihole/setupVars.conf
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_pihole_setupVars.conf 0f48106041f5fdd3f5a5032af0e249ac
+ sudo yunohost app setting pihole checksum__etc_pihole_setupVars.conf --value=0f48106041f5fdd3f5a5032af0e249ac --quiet
+ ynh_system_reload dnsmasq stop
+ local service_name=dnsmasq
+ local action=stop
+ systemctl stop dnsmasq
+ pihole_dnsmasq_config=/etc/dnsmasq.d/01-pihole.conf
+ cp /etc/.pihole/advanced/01-pihole.conf /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string @DNS1@ '' /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local match_string=@DNS1@
+ local replace_string=
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string='\@DNS1\@'
+ replace_string=
+ sudo sed --in-place 's@\@DNS1\@@@g' /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string @DNS2@ '' /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local match_string=@DNS2@
+ local replace_string=
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string='\@DNS2\@'
+ replace_string=
+ sudo sed --in-place 's@\@DNS2\@@@g' /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string '^no-resolv' '#no-resolv' /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local 'match_string=^no-resolv'
+ local replace_string=#no-resolv
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string='^no-resolv'
+ replace_string='#no-resolv'
+ sudo sed --in-place 's@^no-resolv@#no-resolv@g' /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string @INT@ eth0 /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local match_string=@INT@
+ local replace_string=eth0
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string='\@INT\@'
+ replace_string=eth0
+ sudo sed --in-place 's@\@INT\@@eth0@g' /etc/dnsmasq.d/01-pihole.conf
+ '[' false = true ']'
+ ynh_replace_string '^log-queries' '#log-queries' /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local 'match_string=^log-queries'
+ local replace_string=#log-queries
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string='^log-queries'
+ replace_string='#log-queries'
+ sudo sed --in-place 's@^log-queries@#log-queries@g' /etc/dnsmasq.d/01-pihole.conf
+ ynh_replace_string log-queries=extra log-queries /etc/dnsmasq.d/01-pihole.conf
+ local delimit=@
+ local match_string=log-queries=extra
+ local replace_string=log-queries
+ local workfile=/etc/dnsmasq.d/01-pihole.conf
+ match_string=log-queries=extra
+ replace_string=log-queries
+ sudo sed --in-place s@log-queries=extra@log-queries@g /etc/dnsmasq.d/01-pihole.conf
+ ynh_store_file_checksum /etc/dnsmasq.d/01-pihole.conf
+ local checksum_setting_name=checksum__etc_dnsmasq.d_01-pihole.conf
++ sudo md5sum /etc/dnsmasq.d/01-pihole.conf
++ cut '-d ' -f1
+ ynh_app_setting_set pihole checksum__etc_dnsmasq.d_01-pihole.conf 80c54d0cff7555ea04bb93b08c465738
+ sudo yunohost app setting pihole checksum__etc_dnsmasq.d_01-pihole.conf --value=80c54d0cff7555ea04bb93b08c465738 --quiet
+ ynh_replace_string '^cache-size=' '#pihole# cache-size=' /etc/dnsmasq.conf
+ local delimit=@
+ local 'match_string=^cache-size='
+ local 'replace_string=#pihole# cache-size='
+ local workfile=/etc/dnsmasq.conf
+ match_string='^cache-size='
+ replace_string='#pihole# cache-size='
+ sudo sed --in-place 's@^cache-size=@#pihole# cache-size=@g' /etc/dnsmasq.conf
++ ifconfig
++ grep -A 1 eth0
++ tail -1
++ cut -d: -f2
++ awk '{print $2;}'
+ localipv4=192.168.50.50
++ yunohost domain list
++ sed 's/.*: \|.*- //'
++ grep '\.'
+ read perdomain
+ ynh_replace_string '^127.0.0.1.*domaine.fr' '#Commented by pihole# &' /etc/hosts
+ local delimit=@
+ local 'match_string=^127.0.0.1.*domaine.fr'
+ local 'replace_string=#Commented by pihole# &'
+ local workfile=/etc/hosts
+ match_string='^127.0.0.1.*domaine.fr'
+ replace_string='#Commented by pihole# &'
+ sudo sed --in-place 's@^127.0.0.1.*domaine.fr@#Commented by pihole# &@g' /etc/hosts
+ grep -q '^192.168.50.50.*domaine.fr' /etc/hosts
+ read perdomain
+ '[' 0 -eq 1 ']'
+ ynh_exec_fully_quiet yunohost firewall allow UDP 67 --no-upnp
+ eval yunohost firewall allow UDP 67 --no-upnp
++ yunohost firewall allow UDP 67 --no-upnp
+ ynh_system_reload dnsmasq restart
+ local service_name=dnsmasq
+ local action=restart
+ systemctl restart dnsmasq
+ cp /etc/.pihole/advanced/pihole.cron /etc/cron.d/pihole
+ ynh_replace_string '.*updatechecker.*' '#&' /etc/cron.d/pihole
+ local delimit=@
+ local 'match_string=.*updatechecker.*'
+ local 'replace_string=#&'
+ local workfile=/etc/cron.d/pihole
+ match_string='.*updatechecker.*'
+ replace_string='#&'
+ sudo sed --in-place 's@.*updatechecker.*@#&@g' /etc/cron.d/pihole
+ cp /etc/.pihole/adlists.default /etc/pihole/adlists.default
+ ynh_exec_warn_less /opt/pihole/gravity.sh
+ eval /opt/pihole/gravity.sh
++ /opt/pihole/gravity.sh
  [i] Neutrino emissions detected...
  [✓] Pulling blocklist source list into range

  [i] Target: raw.githubusercontent.com (hosts)
  [✓] Status: Retrieval successful

  [i] Target: mirror1.malwaredomains.com (justdomains)
  [✓] Status: Retrieval successful

  [i] Target: sysctl.org (hosts)
  [✓] Status: Retrieval successful

  [i] Target: zeustracker.abuse.ch (blocklist.php?download=domainblocklist)
  [✓] Status: Retrieval successful

  [i] Target: s3.amazonaws.com (simple_tracking.txt)
  [✓] Status: Retrieval successful

  [i] Target: s3.amazonaws.com (simple_ad.txt)
  [✓] Status: Retrieval successful

  [i] Target: hosts-file.net (ad_servers.txt)
  [✓] Status: Retrieval successful

  [✓] Consolidating blocklists
  [✓] Extracting domains from blocklists
  [i] Number of domains being pulled in by gravity: 145,343
  [✓] Removing duplicate domains
  [i] Number of unique domains trapped in the Event Horizon: 122,287

  [i] Number of blocklist source domains being added to the whitelist: 6
  [i] Number of whitelisted domains: 6
  [✓] Parsing domains into hosts format
  [✓] Cleaning up stray matter

pihole-FTL: no process found
  [✓] DNS service is running
  [✓] Pi-hole blocking is Enabled
+ ynh_system_reload pihole-FTL restart
+ local service_name=pihole-FTL
+ local action=restart
+ systemctl restart pihole-FTL
+ cp ../conf/dnsmasq_regenconf_hook /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole
+ yunohost service add pihole-FTL --log /var/log/pihole-FTL.log
The service 'pihole-FTL' has been added
+ yunohost app addaccess --users=user pihole
The SSOwat configuration has been generated
allowed_users:
  pihole: user
+ ynh_system_reload nginx
+ local service_name=nginx
+ local action=reload
+ systemctl reload nginx
+ '[' 0 -eq 1 ']'
+ dhcp_alert=
+ message='If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/pihole_ynh'
+ ynh_send_readme_to_admin 'If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/pihole_ynh' user
+ local 'app_message=If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/pihole_ynh'
+ local recipients=user
++ find_mails user
++ local list_mails=user
++ local mail
++ local 'recipients= '
++ for mail in '$list_mails'
++ '[' user = root ']'
++ echo user
++ grep --quiet @
+++ ynh_user_get_info user mail
+++ ynh_get_plain_key mail
+++ sudo yunohost user info user --output-as plain
+++ local prefix=#
+++ local founded=0
+++ local key=mail
+++ shift
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ #username =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ user =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ #firstname =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ Yassin =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ #lastname =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ Yassin =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ #mailbox-quota =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ ##use =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ 2.0K =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ ##limit =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ No quota =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ #mail-aliases =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ root@domaine.fr =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ admin@domaine.fr =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ webmaster@domaine.fr =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ postmaster@domaine.fr =~ ^#mail$ ]]
+++ read line
+++ [[ 0 == \1 ]]
+++ [[ #mail =~ ^#mail$ ]]
+++ [[ -n '' ]]
+++ founded=1
+++ read line
+++ [[ 1 == \1 ]]
+++ [[ user@domaine.fr =~ ^#[^#] ]]
+++ echo user@domaine.fr
+++ read line
+++ [[ 1 == \1 ]]
+++ [[ #fullname =~ ^#[^#] ]]
+++ return
++ mail=user@domaine.fr
++ recipients='  user@domaine.fr'
++ echo '  user@domaine.fr'
+ recipients='  user@domaine.fr'
+ local 'mail_subject=☁️🆈🅽🅷☁️: `pihole` was just installed!'
++ yunohost tools diagnosis
++ grep -B 100 services:
++ sed /services:/d
+ local 'mail_message=This is an automated message from your beloved YunoHost server.

Specific information for the application pihole.

If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/pihole_ynh

Warning: _common.sh: line 573: mail: command not found
---
Automatic diagnosis data from YunoHost

Warning: !!
Warning:   pihole's script has encountered an error. Its execution was cancelled.
Warning: !!
host: Debian 8.0
Warning:
kernel: 4.9.35-v7+
packages:
  yunohost:
    repo: stable
    version: 2.7.10
  yunohost-admin:
    repo: stable
    version: 2.7.7
  moulinette:
    repo: stable
    version: 2.7.7
  ssowat:
    repo: stable
    version: 2.7.7
backports:
  - debhelper
  - dh-autoreconf
  - e2fslibs:armhf
  - e2fsprogs
  - libcomerr2:armhf
  - libss2:armhf
  - libvdpau1:armhf
  - man-db
  - php-net-ldap3
system:
  disks:
    mmcblk0p1: Mounted on /boot, 62.0MiB (41.1MiB free)
    root: Mounted on /, 14.7GiB (11.8GiB free)
  memory:
    ram: 923.4MiB (586.9MiB free)
    swap: 100.0MiB (92.7MiB free)
nginx:
  - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  - nginx: configuration file /etc/nginx/nginx.conf test is successful'
+ echo 'This is an automated message from your beloved YunoHost server.

Specific information for the application pihole.

If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/pihole_ynh

---
Automatic diagnosis data from YunoHost

host: Debian 8.0
kernel: 4.9.35-v7+
packages:
  yunohost:
    repo: stable
    version: 2.7.10
  yunohost-admin:
    repo: stable
    version: 2.7.7
  moulinette:
    repo: stable
    version: 2.7.7
  ssowat:
    repo: stable
    version: 2.7.7
backports:
  - debhelper
  - dh-autoreconf
  - e2fslibs:armhf
  - e2fsprogs
  - libcomerr2:armhf
  - libss2:armhf
  - libvdpau1:armhf
  - man-db
  - php-net-ldap3
system:
  disks:
    mmcblk0p1: Mounted on /boot, 62.0MiB (41.1MiB free)
    root: Mounted on /, 14.7GiB (11.8GiB free)
  memory:
    ram: 923.4MiB (586.9MiB free)
    swap: 100.0MiB (92.7MiB free)
nginx:
  - nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  - nginx: configuration file /etc/nginx/nginx.conf test is successful'
+ mail -a 'Content-Type: text/plain; charset=UTF-8' -s '☁️🆈🅽🅷☁️: `pihole` was just installed!' '  user@domaine.fr'
+ ynh_exit_properly
+ local exit_code=127
+ '[' 127 -eq 0 ']'
+ trap '' EXIT
+ set +eu
+ echo -e '!!\n  pihole'\''s script has encountered an error. Its execution was cancelled.\n!!'
+ type -t ynh_clean_setup
+ ynh_die
+ echo ''
+ exit 1
Executing script '/var/cache/yunohost/from_file/pihole_ynh-master/scripts/remove'...
+ source _common.sh
++ n_install_dir=/opt/node_n
++ node_version_path=/opt/node_n/n/versions/node
++ export N_PREFIX=/opt/node_n
++ N_PREFIX=/opt/node_n
+ source /usr/share/yunohost/helpers
+++ run-parts --list /usr/share/yunohost/helpers.d
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
++ . /usr/share/yunohost/helpers.d/backend
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ . /usr/share/yunohost/helpers.d/filesystem
+++ CAN_BIND=1
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ . /usr/share/yunohost/helpers.d/ip
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ . /usr/share/yunohost/helpers.d/mysql
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/network ']'
++ . /usr/share/yunohost/helpers.d/network
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ . /usr/share/yunohost/helpers.d/package
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ . /usr/share/yunohost/helpers.d/print
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ . /usr/share/yunohost/helpers.d/setting
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ . /usr/share/yunohost/helpers.d/string
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/system ']'
++ . /usr/share/yunohost/helpers.d/system
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ . /usr/share/yunohost/helpers.d/user
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ . /usr/share/yunohost/helpers.d/utils
+ app=pihole
++ ynh_app_setting_get pihole domain
++ sudo yunohost app setting pihole domain --output-as plain --quiet
+ domain=domaine.fr
++ ynh_app_setting_get pihole port
++ sudo yunohost app setting pihole port --output-as plain --quiet
+ port=4711
+ yunohost service status
+ grep -q pihole-FTL
+ ynh_print_info 'Remove pihole-FTL service'
+ ynh_print_log '[INFO] Remove pihole-FTL service'
+ echo '[INFO] Remove pihole-FTL service'
Warning: [INFO] Remove pihole-FTL service
+ yunohost service remove pihole-FTL
The service 'pihole-FTL' has been removed
+ ynh_system_reload pihole-FTL stop
+ local service_name=pihole-FTL
+ local action=stop
+ systemctl stop pihole-FTL
+ ynh_exec_warn_less systemctl disable pihole-FTL
+ eval systemctl disable pihole-FTL
++ systemctl disable pihole-FTL
Synchronizing state for pihole-FTL.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d pihole-FTL defaults
Executing /usr/sbin/update-rc.d pihole-FTL disable
insserv: warning: current start runlevel(s) (empty) of script `pihole-FTL' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `pihole-FTL' overrides LSB defaults (0 1 6).
+ rm -f /etc/init.d/pihole-FTL /usr/bin/pihole-FTL /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
+ ynh_remove_app_dependencies
+ local dep_app=pihole
+ ynh_package_autopurge pihole-ynh-deps
+ ynh_apt autoremove --purge pihole-ynh-deps
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y -qq autoremove --purge pihole-ynh-deps
[master 75a7656] saving uncommitted changes in /etc prior to apt run
 155 files changed, 410346 insertions(+), 33 deletions(-)
 create mode 100644 .pihole/.editorconfig
 create mode 100644 .pihole/.gitattributes
 create mode 100644 .pihole/.github/ISSUE_TEMPLATE.md
 create mode 100644 .pihole/.github/PULL_REQUEST_TEMPLATE.md
 create mode 100644 .pihole/.gitignore
 create mode 100644 .pihole/.pullapprove.yml
 create mode 100644 .pihole/.stickler.yml
 create mode 100644 .pihole/.travis.yml
 create mode 100644 .pihole/CONTRIBUTING.md
 create mode 100644 .pihole/LICENSE
 create mode 100644 .pihole/README.md
 create mode 100644 .pihole/adlists.default
 create mode 100644 .pihole/advanced/01-pihole.conf
 create mode 100644 .pihole/advanced/GIFs/25Bytes.gif
 create mode 100644 .pihole/advanced/GIFs/26Bytes.gif
 create mode 100644 .pihole/advanced/GIFs/37Bytes.gif
 create mode 100644 .pihole/advanced/GIFs/43Bytes.gif
 create mode 100644 .pihole/advanced/Scripts/COL_TABLE
 create mode 100755 .pihole/advanced/Scripts/chronometer.sh
 create mode 100755 .pihole/advanced/Scripts/list.sh
 create mode 100644 .pihole/advanced/Scripts/piholeCheckout.sh
 create mode 100755 .pihole/advanced/Scripts/piholeDebug.sh
 create mode 100755 .pihole/advanced/Scripts/piholeLogFlush.sh
 create mode 100755 .pihole/advanced/Scripts/setupLCD.sh
 create mode 100755 .pihole/advanced/Scripts/update.sh
 create mode 100755 .pihole/advanced/Scripts/updatecheck.sh
 create mode 100755 .pihole/advanced/Scripts/version.sh
 create mode 100755 .pihole/advanced/Scripts/webpage.sh
 create mode 100644 .pihole/advanced/bash-completion/pihole
 create mode 100644 .pihole/advanced/blockingpage.css
 create mode 100644 .pihole/advanced/cmdline.txt
 create mode 100644 .pihole/advanced/console-setup
 create mode 100644 .pihole/advanced/dnsmasq.conf.original
 create mode 100644 .pihole/advanced/index.php
 create mode 100644 .pihole/advanced/lighttpd.conf.debian
 create mode 100644 .pihole/advanced/lighttpd.conf.fedora
 create mode 100644 .pihole/advanced/logrotate
 create mode 100644 .pihole/advanced/pihole-FTL.service
 create mode 100644 .pihole/advanced/pihole.cron
 create mode 100644 .pihole/advanced/pihole.sudo
 create mode 100755 .pihole/automated install/basic-install.sh
 create mode 100755 .pihole/automated install/uninstall.sh
 create mode 100755 .pihole/autotest
 create mode 100644 .pihole/block hulu ads/lighttpd.conf
 create mode 100644 .pihole/block hulu ads/minidlna.conf
 create mode 100755 .pihole/gravity.sh
 create mode 100755 .pihole/pihole
 create mode 100644 .pihole/requirements.txt
 create mode 100644 .pihole/test/__init__.py
 create mode 100644 .pihole/test/centos.Dockerfile
 create mode 100644 .pihole/test/conftest.py
 create mode 100644 .pihole/test/debian.Dockerfile
 create mode 100644 .pihole/test/test_000_build_containers.py
 create mode 100644 .pihole/test/test_automated_install.py
 create mode 100644 .pihole/test/test_shellcheck.py
 create mode 100644 bash_completion.d/pihole
 create mode 100644 cron.d/nextcloud
 create mode 100644 cron.d/pihole
 create mode 100644 dnsmasq.d/01-pihole.conf
 create mode 100644 logrotate.d/nextcloud
 create mode 100644 nginx/conf.d/domaine.fr.d/nextcloud.conf
 create mode 100644 nginx/conf.d/domaine.fr.d/pihole.conf
 create mode 100644 nginx/conf.d/domaine.fr.d/rss-bridge.conf
 create mode 100644 php5/fpm/conf.d/20-nextcloud.ini
 create mode 100644 php5/fpm/conf.d/20-pihole.ini
 create mode 100644 php5/fpm/pool.d/nextcloud.conf
 create mode 100644 php5/fpm/pool.d/pihole.conf
 create mode 100644 php5/fpm/pool.d/rss-bridge.conf
 create mode 100644 pihole/adlists.default
 create mode 100644 pihole/adlists.list
 create mode 100644 pihole/gravity.list
 create mode 100644 pihole/list.0.raw.githubusercontent.com.domains
 create mode 100644 pihole/list.1.mirror1.malwaredomains.com.domains
 create mode 100644 pihole/list.2.sysctl.org.domains
 create mode 100644 pihole/list.3.zeustracker.abuse.ch.domains
 create mode 100644 pihole/list.4.s3.amazonaws.com.domains
 create mode 100644 pihole/list.5.s3.amazonaws.com.domains
 create mode 100644 pihole/list.6.hosts-file.net.domains
 create mode 100644 pihole/list.preEventHorizon
 create mode 100644 pihole/local.list
 create mode 100644 pihole/logrotate
 create mode 100644 pihole/pihole-FTL.conf
 create mode 100644 pihole/pihole-FTL.db
 create mode 100644 pihole/setupVars.conf
 create mode 100644 pihole/whitelist.txt
 create mode 120000 rc0.d/K01pihole-FTL
 create mode 120000 rc1.d/K01pihole-FTL
 create mode 120000 rc2.d/K01pihole-FTL
 create mode 120000 rc3.d/K01pihole-FTL
 create mode 120000 rc4.d/K01pihole-FTL
 create mode 120000 rc5.d/K01pihole-FTL
 create mode 120000 rc6.d/K01pihole-FTL
 create mode 100644 sudoers.d/pihole
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/backup
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/install
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/remove
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/restore
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/upgrade
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/upgrade.d/upgrade.10.sh
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/upgrade.d/upgrade.11.sh
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/upgrade.d/upgrade.9.sh
 mode change 100755 => 100644 yunohost/apps/nextcloud/scripts/upgrade.d/upgrade.last.sh
 create mode 100644 yunohost/apps/pihole/conf/02-pihole-dhcp.conf
 create mode 100644 yunohost/apps/pihole/conf/FTL.src
 create mode 100644 yunohost/apps/pihole/conf/admin_dashboard.src
 create mode 100644 yunohost/apps/pihole/conf/app.src
 create mode 100755 yunohost/apps/pihole/conf/dnsmasq_regenconf_hook
 create mode 100644 yunohost/apps/pihole/conf/nginx.conf
 create mode 100644 yunohost/apps/pihole/conf/php-fpm.conf
 create mode 100644 yunohost/apps/pihole/conf/php-fpm.ini
 create mode 100644 yunohost/apps/pihole/conf/pihole-FTL.conf
 create mode 100644 yunohost/apps/pihole/manifest.json
 create mode 100755 yunohost/apps/pihole/scripts/_common.sh
 create mode 100644 yunohost/apps/pihole/scripts/_sed
 create mode 100644 yunohost/apps/pihole/scripts/_variables
 create mode 100644 yunohost/apps/pihole/scripts/backup
 create mode 100644 yunohost/apps/pihole/scripts/change_url
 create mode 100644 yunohost/apps/pihole/scripts/install
 create mode 100755 yunohost/apps/pihole/scripts/remove
 create mode 100644 yunohost/apps/pihole/scripts/restore
 create mode 100644 yunohost/apps/pihole/scripts/upgrade
 create mode 100644 yunohost/apps/pihole/settings.yml
 create mode 100644 yunohost/apps/pihole/status.json
 create mode 100644 yunohost/apps/rss-bridge/conf/nginx.conf
 create mode 100644 yunohost/apps/rss-bridge/conf/php-fpm.conf
 create mode 100644 yunohost/apps/rss-bridge/manifest.json
 create mode 100644 yunohost/apps/rss-bridge/scripts/_common.sh
 create mode 100644 yunohost/apps/rss-bridge/scripts/backup
 create mode 100644 yunohost/apps/rss-bridge/scripts/change_url
 create mode 100644 yunohost/apps/rss-bridge/scripts/install
 create mode 100644 yunohost/apps/rss-bridge/scripts/remove
 create mode 100644 yunohost/apps/rss-bridge/scripts/restore
 create mode 100644 yunohost/apps/rss-bridge/scripts/upgrade
 create mode 100644 yunohost/apps/rss-bridge/settings.yml
 create mode 100644 yunohost/apps/rss-bridge/status.json
 create mode 100644 yunohost/hooks.d/post_user_create/50-nextcloud
(Reading database ... 57577 files and directories currently installed.)
                                                                       Removing pihole-ynh-deps (3.3~ynh2) ...
                                                                                                              Removing idn2 (0.10-2+deb8u1) ...
                          Removing libidn2-0:armhf (0.10-2+deb8u1) ...
                                                                      Purging configuration files for libidn2-0:armhf (0.10-2+deb8u1) ...
                    Removing sqlite (2.8.17-12) ...
                                                   Removing libsqlite0 (2.8.17-12) ...
                                                                                      Purging configuration files for libsqlite0 (2.8.17-12) ...
                           Removing php5-sqlite (5.6.33+dfsg-0+deb8u1) ...
                                                                          php5_invoke prerm: Disable module sqlite3 for fpm SAPI
           php5_invoke prerm: Disable module sqlite3 for cli SAPI
                                                                 php5_invoke prerm: Disable module pdo_sqlite for fpm SAPI
     php5_invoke prerm: Disable module pdo_sqlite for cli SAPI
                                                              Purging configuration files for php5-sqlite (5.6.33+dfsg-0+deb8u1) ...
               Removing sqlite3 (3.8.7.1-1+deb8u2) ...
                                                      Processing triggers for man-db (2.7.5-1~bpo8+1) ...
                                                                                                         Processing triggers for libc-bin (2.19-18+deb8u10) ...
                                          Processing triggers for php5-fpm (5.6.33+dfsg-0+deb8u1) ...
                                                                                                     [master ef49fb4] committing changes in /etc after apt run
 14 files changed, 19 deletions(-)
 delete mode 120000 php5/cli/conf.d/20-pdo_sqlite.ini
 delete mode 120000 php5/cli/conf.d/20-sqlite3.ini
 delete mode 120000 php5/fpm/conf.d/20-pdo_sqlite.ini
 delete mode 120000 php5/fpm/conf.d/20-sqlite3.ini
 delete mode 100644 php5/mods-available/pdo_sqlite.ini
 delete mode 100644 php5/mods-available/sqlite3.ini
 delete mode 120000 rc0.d/K01pihole-FTL
 delete mode 120000 rc1.d/K01pihole-FTL
 delete mode 120000 rc2.d/K01pihole-FTL
 delete mode 120000 rc3.d/K01pihole-FTL
 delete mode 120000 rc4.d/K01pihole-FTL
 delete mode 120000 rc5.d/K01pihole-FTL
 delete mode 120000 rc6.d/K01pihole-FTL
+ ynh_secure_remove /etc/pihole
+ local path_to_remove=/etc/pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/pihole ]]
+ [[ /etc/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/pihole ']'
+ sudo rm -R /etc/pihole
+ ynh_secure_remove /opt/pihole
+ local path_to_remove=/opt/pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /opt/pihole ]]
+ [[ /opt/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /opt/pihole ']'
+ sudo rm -R /opt/pihole
+ ynh_secure_remove /var/www/pihole
+ local path_to_remove=/var/www/pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /var/www/pihole ]]
+ [[ /var/www/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /var/www/pihole ']'
+ sudo rm -R /var/www/pihole
+ ynh_secure_remove /etc/.pihole
+ local path_to_remove=/etc/.pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/\.pihole ]]
+ [[ /etc/.pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/.pihole ']'
+ sudo rm -R /etc/.pihole
+ ynh_remove_nginx_config
+ ynh_secure_remove /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local path_to_remove=/etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/nginx/conf\.d/domaine\.fr\.d/pihole\.conf ]]
+ [[ /etc/nginx/conf.d/domaine.fr.d/pihole.conf =~ ^/[[:alnum:]]+$ ]]
+ [[ f = \/ ]]
+ '[' -e /etc/nginx/conf.d/domaine.fr.d/pihole.conf ']'
+ sudo rm -R /etc/nginx/conf.d/domaine.fr.d/pihole.conf
+ sudo systemctl reload nginx
+ ynh_remove_fpm_config
+ ynh_secure_remove /etc/php5/fpm/pool.d/pihole.conf
+ local path_to_remove=/etc/php5/fpm/pool.d/pihole.conf
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/php5/fpm/pool\.d/pihole\.conf ]]
+ [[ /etc/php5/fpm/pool.d/pihole.conf =~ ^/[[:alnum:]]+$ ]]
+ [[ f = \/ ]]
+ '[' -e /etc/php5/fpm/pool.d/pihole.conf ']'
+ sudo rm -R /etc/php5/fpm/pool.d/pihole.conf
+ ynh_secure_remove /etc/php5/fpm/conf.d/20-pihole.ini
+ local path_to_remove=/etc/php5/fpm/conf.d/20-pihole.ini
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/php5/fpm/conf\.d/20-pihole\.ini ]]
+ [[ /etc/php5/fpm/conf.d/20-pihole.ini =~ ^/[[:alnum:]]+$ ]]
+ [[ i = \/ ]]
+ '[' -e /etc/php5/fpm/conf.d/20-pihole.ini ']'
+ sudo rm -R /etc/php5/fpm/conf.d/20-pihole.ini
+ sudo systemctl reload php5-fpm
+ yunohost firewall list
+ grep -q '\- 4711$'
+ ynh_print_info 'Close port 4711'
Warning: [INFO] Close port 4711
+ ynh_print_log '[INFO] Close port 4711'
+ echo '[INFO] Close port 4711'
+ ynh_exec_quiet yunohost firewall disallow TCP 4711
+ eval yunohost firewall disallow TCP 4711
++ yunohost firewall disallow TCP 4711
+ yunohost firewall list
+ grep -q '\- 67$'
+ ynh_print_info 'Close port 67'
Warning: [INFO] Close port 67
+ ynh_print_log '[INFO] Close port 67'
+ echo '[INFO] Close port 67'
+ ynh_exec_quiet yunohost firewall disallow UDP 67
+ eval yunohost firewall disallow UDP 67
++ yunohost firewall disallow UDP 67
+ ynh_secure_remove /etc/cron.d/pihole
+ local path_to_remove=/etc/cron.d/pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/cron\.d/pihole ]]
+ [[ /etc/cron.d/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/cron.d/pihole ']'
+ sudo rm -R /etc/cron.d/pihole
+ ynh_secure_remove /var/log/pihole.log
+ local path_to_remove=/var/log/pihole.log
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /var/log/pihole\.log ]]
+ [[ /var/log/pihole.log =~ ^/[[:alnum:]]+$ ]]
+ [[ g = \/ ]]
+ '[' -e /var/log/pihole.log ']'
+ sudo rm -R /var/log/pihole.log
+ ynh_secure_remove /var/log/pihole-FTL.log
+ local path_to_remove=/var/log/pihole-FTL.log
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /var/log/pihole-FTL\.log ]]
+ [[ /var/log/pihole-FTL.log =~ ^/[[:alnum:]]+$ ]]
+ [[ g = \/ ]]
+ '[' -e /var/log/pihole-FTL.log ']'
+ sudo rm -R /var/log/pihole-FTL.log
+ ynh_secure_remove /usr/local/bin/pihole
+ local path_to_remove=/usr/local/bin/pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /usr/local/bin/pihole ]]
+ [[ /usr/local/bin/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /usr/local/bin/pihole ']'
+ sudo rm -R /usr/local/bin/pihole
+ ynh_secure_remove /etc/bash_completion.d/pihole
+ local path_to_remove=/etc/bash_completion.d/pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/bash_completion\.d/pihole ]]
+ [[ /etc/bash_completion.d/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/bash_completion.d/pihole ']'
+ sudo rm -R /etc/bash_completion.d/pihole
+ ynh_secure_remove /etc/sudoers.d/pihole
+ local path_to_remove=/etc/sudoers.d/pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /etc/sudoers\.d/pihole ]]
+ [[ /etc/sudoers.d/pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /etc/sudoers.d/pihole ']'
+ sudo rm -R /etc/sudoers.d/pihole
+ ynh_system_reload dnsmasq stop
+ local service_name=dnsmasq
+ local action=stop
+ systemctl stop dnsmasq
+ rm -f /etc/dnsmasq.d/01-pihole.conf
+ rm -f /etc/dnsmasq.d/02-pihole-dhcp.conf
+ rm -f /etc/dnsmasq.d/03-pihole-wildcard.conf
+ rm -f /etc/dnsmasq.d/04-pihole-static-dhcp.conf
+ ynh_replace_string '#pihole# ' '' /etc/dnsmasq.conf
+ local delimit=@
+ local 'match_string=#pihole# '
+ local replace_string=
+ local workfile=/etc/dnsmasq.conf
+ match_string='#pihole# '
+ replace_string=
+ sudo sed --in-place 's@#pihole# @@g' /etc/dnsmasq.conf
+ sed -i 's/#Commented by pihole# //g' /etc/hosts
+ sed -i '/#Added by pihole#/d' /etc/hosts
+ ynh_system_reload dnsmasq restart
+ local service_name=dnsmasq
+ local action=restart
+ systemctl restart dnsmasq
+ ynh_secure_remove /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole
+ local path_to_remove=/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole
+ local 'forbidden_path=        /var/www        /home/yunohost.app'
+ [[    /var/www        /home/yunohost.app =~ /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole ]]
+ [[ /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole =~ ^/[[:alnum:]]+$ ]]
+ [[ e = \/ ]]
+ '[' -e /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole ']'
+ sudo rm -R /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_pihole
+ ynh_system_user_delete pihole
+ ynh_system_user_exists pihole
+ getent passwd pihole
Warning: Remove the user pihole
+ echo 'Remove the user pihole'
+ sudo userdel pihole
Success! The SSOwat configuration has been generated
Error: Installation failed 

this is the all log verbose

i don’t understand what’s happening ?

some info please

Try to :

apt-get install mailutils

then install should be working…

o my god
u right :slight_smile:
thanks man !!!

Success! The SSOwat configuration has been generated
Success! Installation complete