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

Install web admin on upgrades

parent f0302c5a
No related branches found
No related tags found
No related merge requests found
...@@ -34,10 +34,11 @@ function android_update_apps { ...@@ -34,10 +34,11 @@ function android_update_apps {
local_hostname=$(grep 'host-name' /etc/avahi/avahi-daemon.conf | awk -F '=' '{print $2}').local local_hostname=$(grep 'host-name' /etc/avahi/avahi-daemon.conf | awk -F '=' '{print $2}').local
plinth_api="/var/www/${local_hostname}/htdocs/plinth/api.json" plinth_api="/var/www/${local_hostname}/htdocs/plinth/api.json"
install_web_admin
# Create a self-signed cert if needed # Create a self-signed cert if needed
# The FreedomBox app assumes a self-signed cert # The FreedomBox app assumes a self-signed cert
if [ ! -f "/etc/ssl/certs/${local_hostname}.crt" ]; then if [ ! -f "/etc/ssl/certs/${local_hostname}.crt" ]; then
install_web_admin
fuser -k 80/tcp fuser -k 80/tcp
fuser -k 443/tcp fuser -k 443/tcp
systemctl restart nginx systemctl restart nginx
......
...@@ -141,9 +141,8 @@ function web_admin_create_installed_apps { ...@@ -141,9 +141,8 @@ function web_admin_create_installed_apps {
} }
function install_web_admin { function install_web_admin {
# TODO # This is intended as an admin web user interface
# This is intended as a placeholder for a potential local web user interface # similar to Plinth or the yunohost
# similar to Plinth or the yunohost admin interface
local_hostname=$(grep 'host-name' /etc/avahi/avahi-daemon.conf | awk -F '=' '{print $2}').local local_hostname=$(grep 'host-name' /etc/avahi/avahi-daemon.conf | awk -F '=' '{print $2}').local
if [ ! -d "/var/www/${local_hostname}/htdocs/admin" ]; then if [ ! -d "/var/www/${local_hostname}/htdocs/admin" ]; then
......
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