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.

Comments (0)

Files changed (1)

fabdeploy/postgres.py

         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()