|
|
@ -127,8 +127,9 @@ def run_init(device_type, args):
|
|
|
|
log.info('GPG home directory: %s', homedir)
|
|
|
|
log.info('GPG home directory: %s', homedir)
|
|
|
|
|
|
|
|
|
|
|
|
if os.path.exists(homedir):
|
|
|
|
if os.path.exists(homedir):
|
|
|
|
log.error('GPG home directory exists, remove it manually if required')
|
|
|
|
log.error('GPG home directory %s exists, '
|
|
|
|
exit(1)
|
|
|
|
'remove it manually if required', homedir)
|
|
|
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
|
|
|
|
check_call(['mkdir', '-p', homedir])
|
|
|
|
check_call(['mkdir', '-p', homedir])
|
|
|
|
check_call(['chmod', '700', homedir])
|
|
|
|
check_call(['chmod', '700', homedir])
|
|
|
|