Skip to content
Snippets Groups Projects
Commit 52b2ad6c authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Replaced plain argument of manage.py (refs #24125).

parent 84bc5fbd
No related branches found
No related tags found
No related merge requests found
...@@ -217,7 +217,7 @@ class SetAppDomain(): ...@@ -217,7 +217,7 @@ class SetAppDomain():
log('Assuming that the new url is using HTTPS: "%s"' % new_url) log('Assuming that the new url is using HTTPS: "%s"' % new_url)
cmds = [ cmds = [
# set site url in site settings # set site url in site settings
'echo \'from skyreach_site.base.models import SiteSettings; ss = SiteSettings.get_singleton(); ss.url = "%s"; ss.save(); print("Site settings saved.")\' | su skyreach -c "python3 /home/skyreach/htdocs/skyreach_site/manage.py shell --plain --no-startup"' % new_url, 'echo \'from skyreach_site.base.models import SiteSettings; ss = SiteSettings.get_singleton(); ss.url = "%s"; ss.save(); print("Site settings saved.")\' | su skyreach -c "python3 /home/skyreach/htdocs/skyreach_site/manage.py shell -i python"' % new_url,
] ]
utils.run_commands(cmds) utils.run_commands(cmds)
except Exception as e: except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment