Guest User

Untitled

a guest
Jan 12th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. $ git diff
  2. diff --git a/proxy/code/setup/cpsetup b/proxy/code/setup/cpsetup
  3. index c6b34a3..18d088c 100755
  4. --- a/proxy/code/setup/cpsetup
  5. +++ b/proxy/code/setup/cpsetup
  6. @@ -82,6 +82,9 @@ class TomcatSetup(object):
  7. config.write(updated)
  8. file.close
  9.  
  10. + def stop(self):
  11. + run_command("/sbin/service tomcat6 stop")
  12. +
  13. def restart(self):
  14. run_command("/sbin/service tomcat6 restart")
  15.  
  16. @@ -160,6 +163,10 @@ class DbSetup(object):
  17. f.close()
  18.  
  19. def main(argv):
  20. + # Stop tomcat before we wipe the DB otherwise you get errors from pg
  21. + tsetup = TomcatSetup('/etc/tomcat6')
  22. + tsetup.stop()
  23. +
  24. dbsetup = DbSetup("candlepin", "candlepin")
  25. dbsetup.initdb()
  26. dbsetup.configurecp()
Add Comment
Please, Sign In to add comment