Skip to content

Commit

Permalink
Add link when it's waiting ssh (#23)
Browse files Browse the repository at this point in the history
* Add link when it's waiting ssh

Signed-off-by: Jean-Yves <[email protected]>

* Add sleep

Signed-off-by: Jean-Yves <[email protected]>

---------

Signed-off-by: Jean-Yves <[email protected]>
  • Loading branch information
docjyJ committed Aug 25, 2024
1 parent e7f2c55 commit 71164bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if [ "$SECURE_DATA_AFTER_UPGRADE" != "OFF" ]; then
>&2 echo 'Your data is in an old format.'
>&2 echo 'Make a backup and see https://github.com/docjyJ/aio-stalwart#Upgrading'
>&2 echo 'To avoid any loss of data, Stalwart will not launch.'
sleep 10
exit 1
fi
else
Expand Down Expand Up @@ -245,8 +246,9 @@ function auto_config_cert() {
echo "certificate.caddy-aio.cert = \"%{file:$AIO_PUB}%\""

while [ ! -f "$AIO_KEY" ] || [ ! -f "$AIO_PUB" ]; do
>&2 echo "Waiting for cert to get created..."
sleep 5
>&2 echo "Waiting for ssl keys to get created..."
>&2 echo "See : https://github.com/docjyJ/aio-stalwart#use-your-own-certificate"
sleep 10
done
fi
else
Expand Down

0 comments on commit 71164bf

Please sign in to comment.