Skip to content
Snippets Groups Projects
Commit a2a4719f authored by Bob Mottram's avatar Bob Mottram
Browse files

Add debugging

parent ef99a740
No related branches found
No related tags found
No related merge requests found
......@@ -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}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment