Skip to content
Snippets Groups Projects
Commit f32df0b1 authored by Bob Mottram's avatar Bob Mottram
Browse files

postgres install

parent 8c758142
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment