]> BookStack Code Mirror - devops/commitdiff
Merge pull request #15 from aaronstuder/patch-1
authorDan Brown <redacted>
Mon, 24 Dec 2018 15:04:50 +0000 (15:04 +0000)
committerGitHub <redacted>
Mon, 24 Dec 2018 15:04:50 +0000 (15:04 +0000)
Allow passing domain as argument

scripts/installation-ubuntu-18.04.sh

index 7db837b21020433149fb57318a4a121ed1fb5fdd..76ac689ffed680b2379d8d4af72aae76176d6bdb 100644 (file)
@@ -2,9 +2,13 @@
 # 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.
 
+DOMAIN=$1
+if [ -z $1 ]
+then
 echo ""
 printf "Enter the domain you want to host BookStack and press [ENTER]\nExamples: my-site.com or docs.my-site.com\n"
 read DOMAIN
+fi
 
 CURRENT_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/')