Ticket #606: patch-Init.py.diff

File patch-Init.py.diff, 682 bytes (added by Fernando Laudares Camargos <[email protected]…>, 14 years ago)
  • Bcfg2/Server/Admin/Init.py

    old new  
    150150 
    151151        # FIXME automate ssl key generation 
    152152        # FIXME key generation may fail as non-root user 
    153         os.popen('openssl req -x509 -nodes -days 1000 -newkey rsa:1024 -out' \ 
    154                  '%s/bcfg2.key -keyout %s/bcfg2.key' % (keypath, keypath)) 
     153        os.popen('openssl req -x509 -nodes -days 1000 -newkey rsa:1024 -out %s/bcfg2.key -keyout %s/bcfg2.key' % (keypath, keypath)) 
    155154        try: 
    156155            os.chmod('%s/bcfg2.key'% keypath, 0600) 
    157156        except: