Create a self-signed cert for the local domain if it doesn't exist
This commit is contained in:
parent
b45b94cd5e
commit
5f2aa9e5e9
|
@ -31,6 +31,12 @@ function android_update_apps {
|
||||||
detect_installable_apps
|
detect_installable_apps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create a self-signed cert if needed
|
||||||
|
# The FreedomBox app assumes a self-signed cert
|
||||||
|
if [ ! -f "/etc/ssl/certs/${local_hostname}.crt" ]; then
|
||||||
|
install_web_local_user_interface
|
||||||
|
fi
|
||||||
|
|
||||||
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/1"
|
plinth_api="/var/www/${local_hostname}/htdocs/plinth/api/1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue