Commit dce97694 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Major 2.0 tagged update to ubuntu 18.04 instead of ubuntu 16.04 base

parent f54c77ce
...@@ -4,7 +4,7 @@ source /pd_build/buildconfig ...@@ -4,7 +4,7 @@ source /pd_build/buildconfig
set -x set -x
# Install Node.js and some packages to successfully compile stuff # Install Node.js and some packages to successfully compile stuff
minimal_apt_get_install nodejs make g++ minimal_apt_get_install npm nodejs make g++
# And update npm afterwards # And update npm afterwards
npm install npm -g npm install npm -g
......
...@@ -5,8 +5,6 @@ set -x ...@@ -5,8 +5,6 @@ set -x
minimal_apt_get_install \ minimal_apt_get_install \
make \ make \
php-apcu \
php-apcu-bc \
php7.2 \ php7.2 \
php7.2-bcmath \ php7.2-bcmath \
php7.2-bz2 \ php7.2-bz2 \
......
...@@ -10,3 +10,4 @@ minimal_apt_get_install \ ...@@ -10,3 +10,4 @@ minimal_apt_get_install \
cp -a /pd_build/runit/redis-server /etc/service/redis-server cp -a /pd_build/runit/redis-server /etc/service/redis-server
sed -i 's/daemonize yes/daemonize no/' /etc/redis/redis.conf sed -i 's/daemonize yes/daemonize no/' /etc/redis/redis.conf
sed -i 's/bind 127.0.0.1 ::1/bind 127.0.0.1/' /etc/redis/redis.conf
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
rm -rf /var/lib/postgresql/* rm -rf /var/lib/postgresql/*
chmod 700 /var/lib/postgresql/ chmod 700 /var/lib/postgresql/
chown postgres:postgres /var/lib/postgresql/ chown postgres:postgres /var/lib/postgresql/
su postgres -c "/usr/lib/postgresql/9.5/bin/initdb --pgdata=/var/lib/postgresql --encoding=UTF8 --no-locale" su postgres -c "/usr/lib/postgresql/10/bin/initdb --pgdata=/var/lib/postgresql --encoding=UTF8 --no-locale"
echo "CREATE USER bamboo;" > ./init.sql echo "CREATE USER bamboo;" > ./init.sql
echo "CREATE USER root;" >> ./init.sql echo "CREATE USER root;" >> ./init.sql
echo "ALTER USER bamboo SUPERUSER;" >> ./init.sql echo "ALTER USER bamboo SUPERUSER;" >> ./init.sql
echo "ALTER USER root SUPERUSER;" >> ./init.sql echo "ALTER USER root SUPERUSER;" >> ./init.sql
su postgres -c '/usr/lib/postgresql/9.5/bin/postgres --single -D /var/lib/postgresql < ./init.sql' su postgres -c '/usr/lib/postgresql/10/bin/postgres --single -D /var/lib/postgresql < ./init.sql'
rm ./init.sql rm ./init.sql
# more opts to check # more opts to check
...@@ -16,4 +16,4 @@ rm ./init.sql ...@@ -16,4 +16,4 @@ rm ./init.sql
# --wal-buffers=32kB --checkpoint-segments=64 --seq-page-cost=0.01 --random-page-cost=0.01 --effective-cache-size=64kB # --wal-buffers=32kB --checkpoint-segments=64 --seq-page-cost=0.01 --random-page-cost=0.01 --effective-cache-size=64kB
exec 2>&1 exec 2>&1
exec chpst -u postgres /usr/lib/postgresql/9.5/bin/postgres -D /var/lib/postgresql exec chpst -u postgres /usr/lib/postgresql/10/bin/postgres -D /var/lib/postgresql
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment