diff --git a/sigmah.sh b/sigmah.sh index 244b14e..b54ae9c 100755 --- a/sigmah.sh +++ b/sigmah.sh @@ -10,6 +10,10 @@ wget https://github.com/sigmah-dev/sigmah/releases/download/v2.0.2/sigmah-2.0.2. unzip /tmp/sigmah.war -d /srv/sigmah rm -f /tmp/sigmah.war +# Update Postgres JDBC driver +rm -f /srv/sigmah/WEB-INF/lib/postgresql-9.1-901-1.jdbc4.jar +wget https://jdbc.postgresql.org/download/postgresql-42.1.4.jar -O /srv/sigmah/WEB-INF/lib/postgresql-42.1.4.jar + # Create database export SIGMAH_PWD=$(head -c 18 /dev/urandom | base64) envsubst <${SOURCE_DIR}/tmp/sigmah-createdb.sql >/tmp/sigmah-createdb.sql