]> BookStack Code Mirror - devops/commitdiff
Updated install scripts
authorDan Brown <redacted>
Mon, 13 Feb 2023 18:30:29 +0000 (18:30 +0000)
committerDan Brown <redacted>
Mon, 13 Feb 2023 18:30:29 +0000 (18:30 +0000)
- Added out-of-support notice to 16.04 script.
- Updated 18.04 and 20.04 scripts to php8.2 for future (and current)
  BookStack version support.

scripts/installation-ubuntu-16.04.sh
scripts/installation-ubuntu-18.04.sh
scripts/installation-ubuntu-20.04.sh

index db955d6f6fbd70e8ccef04183f394534185116ed..6e5d06b0af392320bb75a0b45b278cf0e45c02ea 100644 (file)
@@ -2,6 +2,10 @@
 # This script will install a new BookStack instance on a fresh Ubuntu 16.04 server.
 # This script is experimental and does not ensure any security.
 
+echo "THIS SCRIPT IS NO LONGER SUPPORTED OR MAINTAINED"
+echo "IT MAY NOT WORK WITH CURRENT VERSIONS OF BOOKSTACK"
+echo ""
+
 echo ""
 echo -n "Enter the domain you want to host BookStack and press [ENTER]: "
 read DOMAIN
index 3ac52f0301b0682d1e71a757d83b906a5bd57e05..40f5e14180a216c0e82904e8cea58a848b3f960d 100644 (file)
@@ -16,11 +16,13 @@ fi
 CURRENT_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/')
 
 # Install core system packages
+apt update
+apt install -y software-properties-common
 export DEBIAN_FRONTEND=noninteractive
 add-apt-repository universe
 add-apt-repository -yu ppa:ondrej/php
-apt install -y git apache2 php7.4 curl php7.4-fpm php7.4-curl php7.4-mbstring php7.4-ldap \
-php7.4-xml php7.4-zip php7.4-gd php7.4-mysql mysql-server-5.7 libapache2-mod-php7.4
+apt install -y git apache2 curl php8.2 php8.2-curl php8.2-mbstring php8.2-ldap \
+    php8.2-xml php8.2-zip php8.2-gd php8.2-mysql mysql-server-5.7 libapache2-mod-php8.2
 
 # Set up database
 DB_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13)"
@@ -71,7 +73,7 @@ chown www-data:www-data -R bootstrap/cache public/uploads storage && chmod -R 75
 
 # Set up apache
 a2enmod rewrite
-a2enmod php7.4
+a2enmod php8.2
 
 cat >/etc/apache2/sites-available/bookstack.conf <<EOL
 <VirtualHost *:80>
index 01f2b2196ec445c05739ad05f1d96fd89f090ec8..39c783c5fc72ebfedfda6022cc4e14cbfee106ef 100644 (file)
@@ -24,11 +24,13 @@ fi
 CURRENT_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/')
 
 # Install core system packages
+apt update
+apt install -y software-properties-common
 export DEBIAN_FRONTEND=noninteractive
 add-apt-repository universe
-apt update
-apt install -y git unzip apache2 php7.4 curl php7.4-fpm php7.4-curl php7.4-mbstring php7.4-ldap \
-php7.4-tidy php7.4-xml php7.4-zip php7.4-gd php7.4-mysql mysql-server-8.0 libapache2-mod-php7.4
+add-apt-repository -yu ppa:ondrej/php
+apt install -y git unzip apache2 curl php8.2 php8.2-curl php8.2-mbstring php8.2-ldap \
+  php8.2-xml php8.2-zip php8.2-gd php8.2-mysql mysql-server-8.0 libapache2-mod-php8.2
 
 # Set up database
 DB_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13)"
@@ -81,7 +83,7 @@ chown www-data:www-data -R bootstrap/cache public/uploads storage && chmod -R 75
 
 # Set up apache
 a2enmod rewrite
-a2enmod php7.4
+a2enmod php8.2
 
 cat >/etc/apache2/sites-available/bookstack.conf <<EOL
 <VirtualHost *:80>