From 39805ca66e913495f38ee128a5444ce63fe981d9 Mon Sep 17 00:00:00 2001 From: Tom Noogen Date: Wed, 10 Jan 2018 06:00:10 -0600 Subject: [PATCH] fix path --- rootfs/sysprepz/admin/bin/vesta-auto-ssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/sysprepz/admin/bin/vesta-auto-ssl.sh b/rootfs/sysprepz/admin/bin/vesta-auto-ssl.sh index 1e4ab88..146123f 100755 --- a/rootfs/sysprepz/admin/bin/vesta-auto-ssl.sh +++ b/rootfs/sysprepz/admin/bin/vesta-auto-ssl.sh @@ -6,6 +6,7 @@ source /etc/container_environment.sh VESTA_PATH='/usr/local/vesta' hostname="$VESTA_DOMAIN" user='admin' +export PATH=$PATH:/usr/local/vesta/bin # only run if hostname has a value if [ -n "$hostname" ]; then @@ -35,8 +36,7 @@ if [ -n "$hostname" ]; then # since letsencrypt need to hit and validate sleep 5 - cd /usr/local/vesta/bin - /usr/local/vesta/bin/v-update-host-certificate $user $hostname + v-update-host-certificate $user $hostname exit 0 else echo "[i] vesta-auto-ssl exit due to empty VESTA_DOMAIN variable"