Files
Docker-Chevereto/scripts/system/chevereto.sh

22 lines
579 B
Bash
Raw Normal View History

2021-06-13 16:05:26 -04:00
#!/usr/bin/env bash
set -e
2022-04-03 19:35:44 -04:00
DOWNLOAD_DIR=${PWD}"/.temp"
WORKING_DIR=${PWD}"/chevereto"
2022-10-17 19:49:12 -03:00
PACKAGE=${VERSION}
2022-04-03 19:35:44 -04:00
API_DOWNLOAD="https://chevereto.com/api/download/"
2022-04-03 21:56:25 -04:00
echo "* Downloading Chevereto"
rm -rf $DOWNLOAD_DIR $WORKING_DIR
mkdir -p $DOWNLOAD_DIR
mkdir -p $WORKING_DIR
echo "* Downloading chevereto/v4 $PACKAGE package"
echo "> ${API_DOWNLOAD}${PACKAGE}"
cd $DOWNLOAD_DIR
curl -f -SOJL \
-H "License: $LICENSE" \
"${API_DOWNLOAD}${PACKAGE}"
echo "* Extracting package"
unzip -oq ${CHEVERETO_SOFTWARE}*.zip -d $WORKING_DIR
rm -rf *.zip $DOWNLOAD_DIR
cd -
2022-10-16 11:24:01 -03:00
ls -la $WORKING_DIR