Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

installer: Write PostgreSQL version based on puppet classes.

Alex Vandiverca9d27175b22
diff --git a/scripts/lib/install b/scripts/lib/install
index 18daaf9661f..330e2bffd91 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -329,15 +329,17 @@ auto_renew = yes
EOF
fi
- if [ -e "/etc/init.d/postgresql" ]; then
- if [ "$package_system" = apt ]; then
- cat <<EOF
+ case ",$PUPPET_CLASSES," in
+ *,zulip::voyager,* | *,zulip::postgres_appdb_tuned,*)
+ if [ "$package_system" = apt ]; then
+ cat <<EOF
[postgresql]
version = 12
EOF
- fi
- fi
+ fi
+ ;;
+ esac
) > /etc/zulip/zulip.conf
fi