diff --git a/src/freedombone-utils-webadmin b/src/freedombone-utils-webadmin index 0a317d6f0c05803c244a11051a63f9f79cbec17e..c10841ffd280df8b2db4af2f714a6100c29ed931 100755 --- a/src/freedombone-utils-webadmin +++ b/src/freedombone-utils-webadmin @@ -145,13 +145,18 @@ function install_web_admin { # similar to Plinth or the yunohost local_hostname=$(grep 'host-name' /etc/avahi/avahi-daemon.conf | awk -F '=' '{print $2}').local + echo "install_web_admin 1" > /tmp/debugweb if [ ! -d "/var/www/${local_hostname}/htdocs/admin" ]; then + echo "install_web_admin 2" > /tmp/debugweb mkdir -p "/var/www/${local_hostname}/htdocs/admin" fi + echo "install_web_admin 3" > /tmp/debugweb if [ -d "/usr/share/${PROJECT_NAME}/webadmin" ]; then + echo "install_web_admin 4" > /tmp/debugweb cp -r "/usr/share/${PROJECT_NAME}/webadmin"/* "/var/www/${local_hostname}/htdocs/admin" else + echo "install_web_admin 5" > /tmp/debugweb { echo '<html>'; echo ' <body>'; echo " This is a placeholder for the web admin panel on ${local_hostname}";