Error in installing the PostgreSQL database when creating user

Bug #389355 reported by Hendrik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openWNS-Application
Fix Committed
Medium
Sebastian Max

Bug Description

When executing the ./createUser.py an error occurs saying:

----------------------------------------------------------------------
Traceback (most recent call last):
  File "./createUser.py", line 50, in <module>
    fullName = pwd.getpwnam(userName)[4]
NameError: name 'userName' is not defined
--------------------------------------------------------------------

This can be fixed by either declaring
fullName = 'postgres'
or moving
userName = getpass.getuser()
ahead of hostname = 'localhost'

Revision history for this message
Sebastian Max (smx-comnets) wrote :

Bug is confirmed, as well as the two proposed fixes by Hendrik. The second proposed solution (moving the userName = getpass.getuser()) higher in the file is of course the preferred solution. I am currently on a conference and will post a bugfix when I am back next week.

Thanks to Hendrik for his help,
Sebastian

Changed in openwns-application:
assignee: nobody → Sebastian Max (smx-comnets)
importance: Undecided → Medium
status: New → In Progress
Changed in openwns-application:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.