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

Commit

Permalink
fix autossl
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Jan 9, 2018
1 parent 3c316f3 commit 7edfc49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rootfs/sysprepz/admin/bin/vesta-auto-ssl-restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
source /etc/container_environment.sh

# Includes
source $VESTA/func/main.sh
source $VESTA/func/ip.sh
source $VESTA/conf/vesta.conf
source /usr/local/vesta/func/main.sh
source /usr/local/vesta/func/ip.sh
source /usr/local/vesta/conf/vesta.conf

# wait for things to completely moved into directory
sleep 5

# Restart exim, dovecot & vesta
v-restart-mail
v-restart-service dovecot
v-restart-service vesta
/usr/local/vesta/bin/v-restart-mail
/usr/local/vesta/bin/v-restart-service dovecot
/usr/local/vesta/bin/v-restart-service vesta
1 change: 1 addition & 0 deletions rootfs/sysprepz/admin/bin/vesta-auto-ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,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
else
echo "[i] vesta-auto-ssl exit due to empty VESTA_DOMAIN variable"
Expand Down

0 comments on commit 7edfc49

Please sign in to comment.