new: defaults are now copied into /etc/pwnagotchi/defaults.yml if it doesn't exist or different from release defaults

This commit is contained in:
Simone Margaritelli
2019-10-08 19:21:54 +02:00
parent bd8f2936c5
commit d222935aea
2 changed files with 26 additions and 2 deletions

View File

@ -15,8 +15,7 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-C', '--config', action='store', dest='config',
default=os.path.join(os.path.dirname(pwnagotchi.__file__), 'defaults.yml'),
parser.add_argument('-C', '--config', action='store', dest='config', default='/etc/pwnagotchi/default.yml',
help='Main configuration file.')
parser.add_argument('-U', '--user-config', action='store', dest='user_config', default='/etc/pwnagotchi/config.yml',
help='If this file exists, configuration will be merged and this will override default values.')