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