1. Vladimir Mihailenco
  2. fabdeploy

Commits

Anton Strogonoff  committed a1b0a03

Fix for postgres.install command (password setup)

Seems like self.conf should be provided, otherwise %(db_root_xx)s
variables go straight into shell as is.

  • Participants
  • Parent commits 04f6233
  • Branches default

Comments (0)

Files changed (1)

File fabdeploy/postgres.py

View file
  • Ignore whitespace
         system.aptitude_install.run(packages='postgresql libpq-dev')
         sudo('sudo -u %(db_root_user)s '
              'psql '
-             '--command="\password %(db_root_user)s" %(db_root_password)s')
+             '--command="\password %(db_root_user)s" '
+             '%(db_root_password)s' % self.conf)
 
 install = Install()