try installation process with main

Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
This commit is contained in:
pvogt09 2020-03-05 17:45:00 +01:00
parent e7f7780ddd
commit ff77aa8da3

View file

@ -137,16 +137,21 @@ def test_installPihole_fresh_install_readableBlockpage(Pihole):
confirms all web page assets from Core repo are readable by $LIGHTTPD_USER on a fresh build
'''
installWeb = Pihole.run('''
export TERM=xterm
umask 0027
source /opt/pihole/basic-install.sh
distro_check > /dev/null
clone_or_update_repos
install_dependent_packages ${PIHOLE_WEB_DEPS[@]}
create_pihole_user
installPihole
main
echo "LIGHTTPD_USER=${LIGHTTPD_USER}"
echo "webroot=${webroot}"
''')
# distro_check > /dev/null
# clone_or_update_repos
# install_dependent_packages ${PIHOLE_WEB_DEPS[@]}
# create_pihole_user
# installPihole
# echo "LIGHTTPD_USER=${LIGHTTPD_USER}"
# echo "webroot=${webroot}"
# ''')
assert 0 == installWeb.rc
webuser = ''
user = re.findall("^\s*LIGHTTPD_USER=.*$", installWeb.stdout, re.MULTILINE)