]> git.ipfire.org Git - ipfire-2.x.git/commit
update.sh: Adds code to update an existing ovpnconfig with pass or no-pass
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 17 May 2023 09:56:52 +0000 (11:56 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 18 May 2023 09:51:09 +0000 (09:51 +0000)
commit9cac1034bcfe423c4a5e0f547664fbabcf9050e6
tree2b4ac36f0fa6f7bf2809ab7ad2daed83b2c09ce1
parent18bece0edbd817933f48fdbffcffffd074e42c05
update.sh: Adds code to update an existing ovpnconfig with pass or no-pass

- The code checks first if ovpnconfig exists and is not empty.
- Then it makes all net2net connections no-pass since they do not use encryption
- Then it cycles through all .p12 files and checks with openssl if a password exists or not.
   If a password is present then pass is added to index 41 and if not then no-pass is added
   to index 41
- This code should be left in update.sh for future Core Updates in case people don't update
   with Core Update 175 but leave it till later. This code works fine on code that already
   has pass or no-pass entered into index 41 in ovpnconfig

Fixes: Bug#11048
Suggested-by: Erik Kapfer <ummeegge@ipfire.org>
Suggested-by: Adolf Belka <adolf.belka@ipfire.org>
Tested-by: Erik Kapfer <ummeegge@ipfire.org>
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
config/rootfiles/core/175/update.sh