From 76e7cb08e68619e96c7d4385cf5c2ccbadf5cc09 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 28 Sep 2024 17:46:05 +0200 Subject: [PATCH] Fix duplicate openvpn config initialization --- rootfs/etc/services.d/openvpn/run | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rootfs/etc/services.d/openvpn/run b/rootfs/etc/services.d/openvpn/run index fa3bb72..303634c 100755 --- a/rootfs/etc/services.d/openvpn/run +++ b/rootfs/etc/services.d/openvpn/run @@ -1,6 +1,6 @@ #!/command/with-contenv bashio -if [ ! -e "/config/openvpn" ] +if [ ! -d "/config/openvpn" ] then bashio::log.info "Initialize OpenVPN configuration..." rsync -a /srv/openvpn/ /config/openvpn/ @@ -9,13 +9,6 @@ else bashio::log.info "OpenVPN configuration already initialized" fi -if [ ! -d /config/openvpn ] -then - bashio::log.info "Initialize OpenVPN configuration..." - rsync -a /srv/openvpn/ /config/openvpn/ - bashio::log.info "done." -fi - # Generate secret on first start if [ ! -e /config/openvpn/secret.key ] then