# Openvpn error in command line install script

**URL:** <https://forum.openwrt.org/t/openvpn-error-in-command-line-install-script/230502>\
**Category:** Talk about Documentation\
**Created:** [April 20, 2025, 3:02am UTC](https://forum.openwrt.org/t/openvpn-error-in-command-line-install-script/230502 "2025-04-20T03:02:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![weinhouse](https://forum.openwrt.org/letter_avatar/weinhouse/32/5_5575768a8748004e209b776fc1b2916d.png) [@weinhouse](https://forum.openwrt.org/u/weinhouse)\
**Post date:** [April 20, 2025, 3:02am UTC](https://forum.openwrt.org/t/openvpn-error-in-command-line-install-script/230502/1 "2025-04-20T03:02:01Z")

</div>

The following [instructions](https://openwrt.org/docs/guide-user/services/vpn/openvpn/server)

```plaintext
tar -z -x -f /tmp/easyrsa.tar.gz
 
# Configuration parameters
cat << EOF > /etc/profile.d/easy-rsa.sh
export EASYRSA_PKI="${VPN_PKI}"
export EASYRSA_TEMP_DIR="/tmp"
export EASYRSA_CERT_EXPIRE="3650"
export EASYRSA_BATCH="1"
alias easyrsa="/root/EasyRSA-3.1.7/easyrsa"
EOF
. /etc/profile.d/easy-rsa.sh

```

install failed, In my case, tar command placed files in /tmp but the alias points to /root.

---

<div class="post-metadata">

**Author:** ![pavelgl](https://forum.openwrt.org/user_avatar/forum.openwrt.org/pavelgl/32/33073_2.png) [@pavelgl](https://forum.openwrt.org/u/pavelgl)\
**Post date:** [April 20, 2025, 1:51pm UTC](https://forum.openwrt.org/t/openvpn-error-in-command-line-install-script/230502/2 "2025-04-20T13:51:15Z")

</div>

> [@weinhouse](#):
>
> install failed, In my case, tar command placed files in /tmp but the alias points to /root.

Now it will also work for those like you who switched to a different (from `/root`) directory before running the commands.

---

<div class="post-metadata">

**Author:** ![weinhouse](https://forum.openwrt.org/letter_avatar/weinhouse/32/5_5575768a8748004e209b776fc1b2916d.png) [@weinhouse](https://forum.openwrt.org/u/weinhouse)\
**Post date:** [April 20, 2025, 4:52pm UTC](https://forum.openwrt.org/t/openvpn-error-in-command-line-install-script/230502/3 "2025-04-20T16:52:52Z")

</div>

Thanks for quick response and fix!

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [April 30, 2025, 4:53pm UTC](https://forum.openwrt.org/t/openvpn-error-in-command-line-install-script/230502/4 "2025-04-30T16:53:35Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
