Browse Source

Move to latest Buster distribution

master
Luke Murphy 5 years ago
parent
commit
252709132d
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 37
      bibliotecha.sh

37
bibliotecha.sh

@ -9,7 +9,7 @@
# Digital books need libraries too # Digital books need libraries too
# #
# This install script is intended for use with Debian based # This install script is intended for use with Debian based
# distributions. More specifically, Debian Stretch, which is # distributions. More specifically, Debian Buster, which is
# currently the latest distribution release from the Debian # currently the latest distribution release from the Debian
# project. # project.
# #
@ -80,46 +80,49 @@ function show_bibliotecha_banner {
function show_introduction_text { function show_introduction_text {
echo "" echo ""
echo "Welcome to the Bibliotecha installation script" echo "Welcome to the Bibliotecha automatic installation script"
echo "" echo ""
echo "This script will 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, DNS server and DHCP service" echo "* A Wifi hotspot with DNS DHCP services enabled"
echo "* A Lighttpd web server" echo "* A web server"
echo "* A Calibre server" echo "* A Calibre library"
echo "* A Calibre-web service" echo "* A Calibre-web service"
echo "" echo ""
echo "Once the script is finished, please see post-install steps" echo "Once the script is finished, please see post-install steps"
echo "that are documented and available from the Bibliotecha manual:" echo "that are documented and available from the Bibliotecha manual:"
echo "" echo ""
echo " https://manual.bibliotecha.info/#TODO" echo " https://manual.bibliotecha.info/#post-installation"
echo ""
echo "If anything goes wrong, please see the troubleshooting guide"
echo ""
echo " https://manual.bibliotecha.info/#troubleshooting"
echo "" echo ""
await_any_key await_any_key
} }
function ensure_stretch_based_distribution { function ensure_buster_based_distribution {
echo "Checking distribution ..." echo "Checking distribution ..."
local installing_on_stretch_based=1 local installing_on_buster_based=1
if [ ! -f /etc/apt/sources.list ]; then if [ ! -f /etc/apt/sources.list ]; then
installing_on_stretch_based= installing_on_buster_based=
else else
if ! grep -q 'stretch' /etc/apt/sources.list; then if ! grep -q 'buster' /etc/apt/sources.list; then
installing_on_stretch_based= installing_on_buster_based=
fi fi
if ! grep -q 'debian' /etc/apt/sources.list; then if ! grep -q 'debian' /etc/apt/sources.list; then
if ! grep -q 'raspbian' /etc/apt/sources.list; then if ! grep -q 'raspbian' /etc/apt/sources.list; then
installing_on_stretch_based= installing_on_buster_based=
fi fi
fi fi
fi fi
if [ ! $installing_on_stretch_based ]; then if [ ! $installing_on_buster_based ]; then
echo "You should only run this on a Debian Stretch based system" echo "You should only run this on a Debian Buster based system"
echo "Cannot continue ..."
exit 1 exit 1
fi fi
} }
@ -369,7 +372,7 @@ function reboot_system {
function run_installation { function run_installation {
ensure_root_account ensure_root_account
ensure_stretch_based_distribution ensure_buster_based_distribution
show_bibliotecha_banner show_bibliotecha_banner
show_introduction_text show_introduction_text

Loading…
Cancel
Save