mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
use default keystore path when generating a new setup with init
Before, the path to the keystore was also hardcoded in init.py, this makes init now get it from the defaults set in common.py.
This commit is contained in:
parent
0736367675
commit
f1ae3d3fd0
@ -192,11 +192,9 @@ def main():
|
||||
write_to_config('keydname', keydname)
|
||||
if not os.path.isfile(keystore):
|
||||
# no existing or specified keystore, generate the whole thing
|
||||
keystoredir = os.path.join(os.getenv('HOME'),
|
||||
'.local', 'share', 'fdroidserver')
|
||||
keystoredir = os.path.dirname(keystore)
|
||||
if not os.path.exists(keystoredir):
|
||||
os.makedirs(keystoredir, mode=0o700)
|
||||
keystore = os.path.join(keystoredir, 'keystore.jks')
|
||||
write_to_config('keystore', keystore)
|
||||
password = genpassword()
|
||||
write_to_config('keystorepass', password)
|
||||
|
Loading…
Reference in New Issue
Block a user