Revert to ls, there should be no special chars here

This commit is contained in:
Michal Čihař 2021-02-09 10:34:52 +01:00
parent f4bc9c11d8
commit 5954f1880b

View file

@ -11,7 +11,8 @@ cd /tmp
apt install -y postgresql

# Figure out current cluster version
CLUSTER_VERSION=$(find /etc/postgresql -mindepth 1 -maxdepth 1 | sort | tail -n1)
# shellcheck disable=SC2012
CLUSTER_VERSION=$(ls /etc/postgresql | sort | tail -n1)

# Start cluster
pg_ctlcluster "$CLUSTER_VERSION" main start