Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #29 from niiknow/master
Browse files Browse the repository at this point in the history
fix path
  • Loading branch information
noogen authored Jan 10, 2018
2 parents 0f94f69 + 39805ca commit 7bad919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/sysprepz/admin/bin/vesta-auto-ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 7bad919

Please sign in to comment.