]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
update.sh: Ensure ncp-disable is removed from config and DATACIPHERS added
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 25 Aug 2025 09:19:14 +0000 (11:19 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Aug 2025 14:08:20 +0000 (14:08 +0000)
- This is doing the same thing as the other patch of this series dealing with backup.pl

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/197/update.sh

index 0fd5cc6f038e8795353f914a5cb7973984594cf2..f1800b2c09a3f232289524f7081f946d95d3e602 100644 (file)
@@ -123,6 +123,10 @@ ldconfig
 /usr/local/bin/filesystem-cleanup
 
 # Update the OpenVPN configuration
+if grep -q "ncp-disable" /var/ipfire/ovpn/server.conf; then
+       sed -r -e "/ncp-disable/d" -i /var/ipfire/ovpn/server.conf
+       echo "DATACIPHERS=AES-256-GCM|AES-128-GCM|CHACHA20-POLY1305" >> /var/ipfire/ovpn/settings
+fi
 sudo -u nobody /srv/web/ipfire/cgi-bin/ovpnmain.cgi
 
 # Apply SSH configuration