If the install fails, we need the whole directory to belong to root again

This commit is contained in:
Papa Dragon 2023-02-28 23:44:39 +01:00
parent 90a20259f2
commit 2a83b4eaa5

View file

@ -126,6 +126,8 @@ function die {
rm -f $install_path/.htconfig.php ]
print_info "We delete .htconfig.php"
fi
# We change ownership of the directory back to root so we can try another install
chown -R root:root $install_path
echo -n -e '\e[1;31m'
echo "ERROR: $1" > /dev/null 1>&2