Install postgres-contrib (required by pandora)

Do not remove gnupg (required by apt-add-key)
Cleanup git files in 99-cleanup.sh
This commit is contained in:
Disassembler 2017-08-31 11:21:33 +02:00
parent 8db8053a4d
commit 2a93282a0e
2 changed files with 8 additions and 5 deletions

View File

@ -3,7 +3,7 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))
# Uninstall unnecessary packages
apt-get -y purge bsdmainutils dictionaries-common emacsen-common gnupg gnupg-agent iamerican ibritish ienglish-common installation-report ispell laptop-detect nano os-prober pinentry-curses task-english tasksel tasksel-data wamerican
apt-get -y purge bsdmainutils dictionaries-common emacsen-common iamerican ibritish ienglish-common installation-report ispell laptop-detect nano os-prober pinentry-curses task-english tasksel tasksel-data wamerican
# Install useful packages
apt-get -y update
@ -83,7 +83,7 @@ systemctl restart nginx
#####
# Install packages
apt-get -y --no-install-recommends -y install postgresql-9.6 postgresql-9.6-postgis
apt-get -y --no-install-recommends -y install postgresql-9.6 postgresql-9.6-postgis postgresql-contrib-9.6
# Configure
cp ${SOURCE_DIR}/basic/etc/postgresql/9.6/main/postgresql.conf /etc/postgresql/9.6/main/postgresql.conf

View File

@ -1,11 +1,14 @@
#!/bin/bash
# Remove git metadata
find / -name '.git*' -exec rm -rf {} \;
# Remove SSH settings
rm -rf /root/.ssh/
# Remove packages not necessary for release
apt-get -y purge git openssh-server
apt-get -y --purge autoremove
# Clean package cache
apt-get -y clean
# Remove SSH settings
rm -rf /root/.ssh/