bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42544: [PATCH]: gnu: services: Make some openvpn options optional to


From: david larsson
Subject: bug#42544: [PATCH]: gnu: services: Make some openvpn options optional to include in the openvpn config file.
Date: Fri, 31 Jul 2020 23:44:51 +0000

From 5014aa2f455b127deaa013f327dc1cc42d0e1772 Mon Sep 17 00:00:00 2001
From: David Larsson <david.larsson@selfhosted.xyz>
Date: Sat, 1 Aug 2020 00:16:02 +0200
Subject: [bug#42544] [PATCH]: gnu: services: Make some openvpn options
 optional to include in the openvpn config file.

* gnu/services/vpn.scm (openvpn-client-configuration) (openvpn-server-configuration): Change cert and key options to type maybe-string.
---
 gnu/services/vpn.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index 658d5c3e88..6155fd7938 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
+;;; Copyright © 2020 David Larsson <david.larsson@selfhosted.xyz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -277,12 +278,12 @@ servers.")
     "The certificate authority to check connections against.")

    (cert
-    (string "/etc/openvpn/client.crt")
+    (maybe-string 'disabled)
"The certificate of the machine the daemon is running on. It should be signed
 by the authority given in @code{ca}.")

    (key
-    (string "/etc/openvpn/client.key")
+    (maybe-string 'disabled)
"The key of the machine the daemon is running on. It must be the key whose
 certificate is @code{cert}.")

--
2.18.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]