Skip to content

Commit

Permalink
fixes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Apr 15, 2023
1 parent a8fa638 commit 27c180d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion profiwiki/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="0.1.2"
__version__="0.1.3"
7 changes: 4 additions & 3 deletions profiwiki/profiwiki_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ def work(self,args):
print(cmd)
return
mwApp=self.getMwApp(withGenerate=args.forceRebuild)
if self.config.verbose:
print(f"ProfiWiki {mwApp.config.container_base_name} using port {mwApp.config.port} sqlport {mwApp.config.sqlPort}")

if args.randompassword:
self.password=self.config.random_password()
mwApp.config.password=self.config.random_password()
self.wikiUser=self.createOrModifyWikiUser(mwApp,force_overwrite=args.forceuser)
if args.wikiuser and not self.wikiUser:
self.createOrModifyWikiUser(mwApp,force_overwrite=args.forceuser)
Expand Down Expand Up @@ -137,8 +140,6 @@ def getMwCluster(self,withGenerate:bool=True)->MediaWikiCluster:
"""
if self.mwCluster is not None:
return self.mwCluster
if self.config.verbose:
print(f"ProfiWiki {self.config.prefix} using port {self.config.port}")
mwCluster=MediaWikiCluster(config=self.config)
# generate
mwCluster.createApps(withGenerate=withGenerate)
Expand Down

0 comments on commit 27c180d

Please sign in to comment.