1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02: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:
Hans-Christoph Steiner 2014-04-03 21:42:23 -04:00
parent 0736367675
commit f1ae3d3fd0

View File

@ -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)