@@ -21,7 +21,14 @@ INSTALLATION_LOG_WITH_DATE="/data/coolify/source/installation-${DATE}.log"
21
21
22
22
exec > >( tee -a $INSTALLATION_LOG_WITH_DATE ) 2>&1
23
23
24
- CDN=" https://cdn.coollabs.io/coolify-nightly"
24
+ getAJoke () {
25
+ JOKES=$( curl -s --max-time 2 https://v2.jokeapi.dev/joke/Programming? format=txt& type=single& amount=1 || true)
26
+ if [ " $JOKES " != " " ]; then
27
+ echo -e " - Until then, here's a joke for you:\n"
28
+ echo -e " $JOKES \n"
29
+ fi
30
+ }
31
+ CDN=" https://cdn.coollabs.io/coolify"
25
32
OS_TYPE=$( grep -w " ID" /etc/os-release | cut -d " =" -f 2 | tr -d ' "' )
26
33
ENV_FILE=" /data/coolify/source/.env"
27
34
202
209
echo -e " 3. Check Docker Installation. "
203
210
if ! [ -x " $( command -v docker) " ]; then
204
211
echo " - Docker is not installed. Installing Docker. It may take a while."
212
+ getAJoke
205
213
case " $OS_TYPE " in
206
214
" almalinux" )
207
215
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo > /dev/null 2>&1
@@ -477,22 +485,14 @@ chmod -R 700 /data/coolify
477
485
echo -e " 9. Installing Coolify ($LATEST_VERSION )"
478
486
echo -e " - It could take a while based on your server's performance, network speed, stars, etc."
479
487
echo -e " - Please wait."
480
- JOKES=$( curl -s https://v2.jokeapi.dev/joke/Programming? format=txt& type=single& amount=1 || true)
481
- if [ " $JOKES " != " " ]; then
482
- echo -e " - Until then, here's a joke for you:\n"
483
- echo -e " $JOKES \n"
484
- fi
488
+ getAJoke
485
489
486
490
bash /data/coolify/source/upgrade.sh " ${LATEST_VERSION:- latest} " " ${LATEST_HELPER_VERSION:- latest} " > /dev/null 2>&1
487
491
echo " - Coolify installed successfully."
488
492
rm -f $ENV_FILE -$DATE
489
493
490
494
echo " - Waiting for 20 seconds for Coolify (database migrations) to be ready."
491
- JOKES=$( curl -s https://v2.jokeapi.dev/joke/Programming? format=txt& type=single& amount=1 || true)
492
- if [ " $JOKES " != " " ]; then
493
- echo -e " - Until then, here's a joke for you:\n"
494
- echo -e " $JOKES \n"
495
- fi
495
+ getAJoke
496
496
497
497
sleep 20
498
498
echo -e " \033[0;35m
0 commit comments