Skip to content

Path declaration for Darwin #2

@slgh-hh

Description

@slgh-hh

Line 53 to 64 (the Darwin part) is missing some leading slashes in the path declaration to work probably and there is a typo in the postgre path.

elif hostOS == 'darwin':
eol = '\n'
dumpTool = '/Library/PostgreSQL/%s/bin/pg_dump' %pgVersion
destPath = os.path.join('/Users', currentUser, 'Documents/ResolveProjectBackup')
# Generate .pgpass authentication file if missing
# Without this file pd_dump requires manual authentication
# NOT TESTED! Watch for .pgpass permissions issues.
pgPass = os.path.join('/Users', currentUser, '.pgpass')
if not os.path.isfile(pgPass):
pgPassFile = open(pgPass, 'w')
pgPassFile.write(dbHost + ':5432:*:' + dbUser + ':' + dbPassword)
pgPassFile.close()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions