We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 858fbee commit 06ccba3Copy full SHA for 06ccba3
mamonsu/lib/runner.py
@@ -110,6 +110,9 @@ def quit_handler(_signo=None, _stack_frame=None):
110
if len(commands) == 2:
111
commands.append('postgrespro.conf')
112
print('Configuration file for mamonsu have been saved in postgrespro.conf file')
113
+ # if no name for conf, save to mamonsu.conf
114
+ if commands[2].rfind("/") == len(commands[2]) - 1:
115
+ commands[2] = commands[2][:-1] + "/mamonsu.conf"
116
with open(commands[2], 'w') as fd:
117
cfg.config.write(fd)
118
sys.exit(0)
0 commit comments