From 52009d6b05076a2bf081d51191218aa85117e880 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Sat, 9 Feb 2019 17:10:55 +0100 Subject: rolling new release. Now with script to add packages needed to roll upgrade --- files/etc/apache2/conf.d/davical.conf | 7 +------ files/usr/local/bin/entrypoint.sh | 4 +--- files/var/www/app/dba/pre_upgrade_install.sh | 10 ++++++++++ 3 files changed, 12 insertions(+), 9 deletions(-) create mode 100755 files/var/www/app/dba/pre_upgrade_install.sh (limited to 'files') diff --git a/files/etc/apache2/conf.d/davical.conf b/files/etc/apache2/conf.d/davical.conf index 482eff6..91c2275 100644 --- a/files/etc/apache2/conf.d/davical.conf +++ b/files/etc/apache2/conf.d/davical.conf @@ -11,12 +11,7 @@ AcceptPathInfo On - - AuthType Basic - AuthName "private area" - AuthUserFile /etc/apache2/davical.htpasswd - Require valid-user - + SetEnvIf X-Forwarded-User (.*) REMOTE_USER=$1 AllowOverride None diff --git a/files/usr/local/bin/entrypoint.sh b/files/usr/local/bin/entrypoint.sh index 337e62a..1a95506 100755 --- a/files/usr/local/bin/entrypoint.sh +++ b/files/usr/local/bin/entrypoint.sh @@ -1,14 +1,12 @@ #!/bin/sh # Change apache config -#sed -i "s/#ServerName www.example.com:80/ServerName $APACHE_SERVER_NAME/" /etc/apache2/httpd.conf +sed -i "s/#ServerName www.example.com:80/ServerName $APACHE_SERVER_NAME/" /etc/apache2/httpd.conf sed -i "s/ServerAdmin\ you@example.com/ServerAdmin\ $ADMIN_MAIL/" /etc/apache2/httpd.conf sed -i 's/ServerSignature On/ServerSignature Off/' /etc/apache2/httpd.conf sed -i 's#/var/www/localhost/htdocs#/var/www/app/htdocs#g' /etc/apache2/httpd.conf sed -i "s/#APACHE_SERVER_NAME/$APACHE_SERVER_NAME/" /etc/apache2/conf.d/davical.conf -echo -e "$APACHE_USERS" > /etc/apache2/davical.htpasswd - # Modify php.ini settings sed -i 's/memory_limit = .*/memory_limit = 256M/' /etc/php7/php.ini sed -i "s/^;date.timezone =$/date.timezone = \"Europe\/Oslo\"/" /etc/php7/php.ini diff --git a/files/var/www/app/dba/pre_upgrade_install.sh b/files/var/www/app/dba/pre_upgrade_install.sh new file mode 100755 index 0000000..e75c7cd --- /dev/null +++ b/files/var/www/app/dba/pre_upgrade_install.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# These packages are needed to upgrade the database + +apk update && apk add \ + perl \ + perl-dbd-pg \ + perl-yaml \ + perl-dbi \ + postgresql-client -- cgit v1.2.3