mirror of https://github.com/zulip/zulip.git
9f7c0b7e65
The construction `su postgres -c -- bash -c 'psql …'` didn’t behave the way it reads, and only worked by accident: 1. `-c --` sets the command to `--`. 2. `bash` sets the first argument to `bash`. 3. `-c 'psql …'` replaces the command with `psql …`. Thus, `su` ended up executing `<shell> -c 'psql …' bash`, where `<shell>` is the `postgres` user’s login shell, usually also `bash`, which then executed 'psql …' and ignored the extra `bash`. Unconfuse this construction. Note from tabbott: The old code didn't even work by accident, it was just broken. The right fix is to move the quoting around properly. Signed-off-by: Anders Kaseorg <anders@zulipchat.com> |
||
---|---|---|
.. | ||
apache.pp | ||
app_frontend.pp | ||
apt_repository_debathena.pp | ||
base.pp | ||
git.pp | ||
init.pp | ||
loadbalancer.pp | ||
munin.pp | ||
nagios.pp | ||
postgres_appdb.pp | ||
postgres_common.pp | ||
postgres_master.pp | ||
postgres_slave.pp | ||
prod_app_frontend.pp | ||
redis.pp | ||
staging_app_frontend.pp | ||
zmirror.pp | ||
zmirror_personals.pp |