Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.sh: Remove unused code paths #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 1 addition & 30 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,12 @@ check_docker_process() {


docker_compose_init() {
# Make sure we are still in the bluecherry-docker directory

#uptimekuma


echo "Downloading latest Bluecherry and related images...this may take a while..."

# Make sure we are still in the bluecherry-docker directory
cd "$workingpath/bluecherry-docker"

# Init the mailenv config

cp "$workingpath"/bluecherry-docker/mailenv-example "$workingpath"/bluecherry-docker/.mailenv

docker compose pull
Expand All @@ -55,12 +50,6 @@ docker_compose_init() {
sleep 15
docker compose run bluecherry bc-database-create
docker compose down
#for i in {1..50}; do
# if docker compose pull; then
# if docker compose up -d; then
# break
# fi
# fi
sleep 10
docker compose up -d
#done
Expand Down Expand Up @@ -345,24 +334,6 @@ install_docker() {

}

uptimekuma() {

echo -e "Installing Uptime Kuma for monitoring of Bluecherry services\n\n"

DOWNLOAD_URL='https://github.com/louislam/uptime-kuma/releases/download/1.21.3/dist.tar.gz'

cd "$workingpath/bluecherry-docker" || exit 1

wget "${DOWNLOAD_URL}"
tar -zxf "$workingpath/dist.tar.gz" -C "$workingpath"

echo -e "Installing Uptime Kuma for monitoring of Bluecherry services\n\n"

cd bluecherry-docker
wget https://github.com/louislam/uptime-kuma/releases/download/1.21.3/dist.tar.gz
tar -xvf dist.tar.gz
}

# shellcheck disable=SC2162 # "read without -r will mangle backslashes."
read -p "Do you want to install docker and setup Bluecherry server? [y/n]: " answer

Expand Down