]> BookStack Code Mirror - devops/blobdiff - scripts/installation-ubuntu-18.04.sh
adding php7.2 to list of things to install
[devops] / scripts / installation-ubuntu-18.04.sh
index 64725bacf4bdd03972b298061e2cc8d125a4af8b..45e3f926520edf55dd73368839493ea32f78fb64 100644 (file)
@@ -2,6 +2,8 @@
 # This script will install a new BookStack instance on a fresh Ubuntu 18.04 server.
 # This script is experimental and does not ensure any security.
 
+# Fetch domain to use from first provided parameter,
+# Otherwise request the user to input their domain
 DOMAIN=$1
 if [ -z $1 ]
 then
@@ -10,11 +12,14 @@ printf "Enter the domain you want to host BookStack and press [ENTER]\nExamples:
 read DOMAIN
 fi
 
+# Get the current machine IP address
 CURRENT_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/')
 
+# Install core system packages
 export DEBIAN_FRONTEND=noninteractive
+add-apt-repository universe
 apt update
-apt install -y git apache2 curl php7.2-fpm php7.2-curl php7.2-mbstring php7.2-ldap \
+apt install -y git apache2 php7.2 curl php7.2-fpm php7.2-curl php7.2-mbstring php7.2-ldap \
 php7.2-tidy php7.2-xml php7.2-zip php7.2-gd php7.2-mysql mysql-server-5.7 libapache2-mod-php7.2
 
 # Set up database