Browse Source

Remove key function and fix typo

When running the script piped through bash, you cannot
wait for a key press, so we just remove it for now.
master
Luke Murphy 5 years ago
parent
commit
2bddba9ee1
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 11
      bibliotecha.sh

11
bibliotecha.sh

@ -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 {

Loading…
Cancel
Save