postgres install

This commit is contained in:
Bob Mottram 2018-03-04 21:32:40 +00:00
parent 8c75814291
commit f32df0b102
1 changed files with 4 additions and 3 deletions

View File

@ -50,8 +50,8 @@ function get_postgresql_password {
}
function mesh_install_postgresql {
# shellcheck disable=SC2154
chroot "$rootdir" apt-get -yq install "$POSTGRESQL_PACKAGES"
# shellcheck disable=SC2154,SC2086
chroot "$rootdir" apt-get -yq install $POSTGRESQL_PACKAGES
if [ ! -d "$rootdir/etc/postgresql" ]; then
echo $"ERROR: postgresql does not appear to have installed."
@ -85,7 +85,8 @@ function install_postgresql {
fi
"${PROJECT_NAME}-pass" -u root -a postgresql -p "$POSTGRESQL_PASSWORD"
apt-get -yq install "$POSTGRESQL_PACKAGES"
# shellcheck disable=SC2086
apt-get -yq install $POSTGRESQL_PACKAGES
apt-get -yq remove --purge apache2-bin*
if [ -d /etc/apache2 ]; then
rm -rf /etc/apache2