From 4a9fe8e917100d5476dc14ca865f3de6cafe1b52 Mon Sep 17 00:00:00 2001 From: Izhikov Matvey Date: Mon, 6 Jan 2025 16:01:37 +0400 Subject: [PATCH] openvpn-user: added migrate command --- setup/configure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/configure.sh b/setup/configure.sh index a9299a5..3f57722 100644 --- a/setup/configure.sh +++ b/setup/configure.sh @@ -48,7 +48,7 @@ if [ ${OVPN_PASSWD_AUTH} = "true" ]; then echo "auth-user-pass-verify /etc/openvpn/scripts/auth.sh via-file" | tee -a /etc/openvpn/openvpn.conf echo "script-security 2" | tee -a /etc/openvpn/openvpn.conf echo "verify-client-cert require" | tee -a /etc/openvpn/openvpn.conf - openvpn-user db-init --db.path=$EASY_RSA_LOC/pki/users.db + openvpn-user db-init --db.path=$EASY_RSA_LOC/pki/users.db && openvpn-user db-migrate --db.path=$EASY_RSA_LOC/pki/users.db fi [ -d $EASY_RSA_LOC/pki ] && chmod 755 $EASY_RSA_LOC/pki