|
@ -45,13 +45,6 @@ CAPTIVE_PORTAL_PATH="/var/www/bibliotecha" |
|
|
CALIBRE_WEB_PATH="/var/www/calibre-web" |
|
|
CALIBRE_WEB_PATH="/var/www/calibre-web" |
|
|
LIGHTTPD_CONFIG_PATH="/etc/lighttpd/bibliotecha" |
|
|
LIGHTTPD_CONFIG_PATH="/etc/lighttpd/bibliotecha" |
|
|
|
|
|
|
|
|
function await_any_key { |
|
|
|
|
|
echo "" |
|
|
|
|
|
# shellcheck disable=SC2034 |
|
|
|
|
|
read -n1 -rsp $"Press any key to continue ..." key |
|
|
|
|
|
echo "" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function ensure_root_account { |
|
|
function ensure_root_account { |
|
|
echo "Checking user account ..." |
|
|
echo "Checking user account ..." |
|
|
|
|
|
|
|
@ -85,7 +78,7 @@ function show_introduction_text { |
|
|
echo "This script will attempt to setup the following infrastructure:" |
|
|
echo "This script will attempt to setup the following infrastructure:" |
|
|
echo "" |
|
|
echo "" |
|
|
echo "* A Python 3 environment" |
|
|
echo "* A Python 3 environment" |
|
|
echo "* A Wifi hotspot with DNS DHCP services enabled" |
|
|
echo "* A Wifi hotspot with DNS and DHCP services enabled" |
|
|
echo "* A web server" |
|
|
echo "* A web server" |
|
|
echo "* A Calibre library" |
|
|
echo "* A Calibre library" |
|
|
echo "* A Calibre-web service" |
|
|
echo "* A Calibre-web service" |
|
@ -99,8 +92,6 @@ function show_introduction_text { |
|
|
echo "" |
|
|
echo "" |
|
|
echo " https://manual.bibliotecha.info/#troubleshooting" |
|
|
echo " https://manual.bibliotecha.info/#troubleshooting" |
|
|
echo "" |
|
|
echo "" |
|
|
|
|
|
|
|
|
await_any_key |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function ensure_buster_based_distribution { |
|
|
function ensure_buster_based_distribution { |
|
|