]> BookStack Code Mirror - devops/commitdiff
Added extra comments to install script
authorDan Brown <redacted>
Mon, 24 Dec 2018 15:06:55 +0000 (15:06 +0000)
committerGitHub <redacted>
Mon, 24 Dec 2018 15:06:55 +0000 (15:06 +0000)
scripts/installation-ubuntu-18.04.sh

index 76ac689ffed680b2379d8d4af72aae76176d6bdb..67672313033e3f644efb1501897ecda194a2e85e 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,8 +12,10 @@ 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