Skip to content

Commit

Permalink
fix: remove mongodb installation
Browse files Browse the repository at this point in the history
  • Loading branch information
David Zwart committed Feb 4, 2024
1 parent a600067 commit 21c4bdb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export DIST_NAME=MonsterPi
export DIST_VERSION=0.3.2-rc2
export DIST_VERSION=0.3.2-rc2-sqlite

export BASE_DISTRO=ubuntu
export BASE_ARCH=aarch64
Expand Down
3 changes: 0 additions & 3 deletions src/modules/monsterpi/config
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
###############################################################################
# All our config settings must start with MONSTERPI_

# MongoDB
[ -n "$MONSTERPI_MONGODB_VERSION" ] || MONSTERPI_MONGODB_VERSION=4.4

# NodeJS
[ -n "$MONSTERPI_NODEJS_VERSION" ] || MONSTERPI_NODEJS_VERSION=18.x

Expand Down
12 changes: 1 addition & 11 deletions src/modules/monsterpi/start_chroot_script
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# start_chroot_script
# This installs MongoDB as well as FDM Monster and HAProxy
# This installs FDM Monster and HAProxy
# Written by David Zwart
# GPL V3
########
Expand Down Expand Up @@ -47,16 +47,6 @@ fi
# Install GPG
apt install -y gnupg

# Add MongoDB as trusted source list
wget -qO - https://www.mongodb.org/static/pgp/server-"$MONSTERPI_MONGODB_VERSION".asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/`cat /etc/os-release | grep "^ID=" | cut -d "=" -f2` `cat /etc/os-release | grep "^VERSION_CODENAME=" | cut -d "=" -f2`/mongodb-org/$MONSTERPI_MONGODB_VERSION multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-$MONSTERPI_MONGODB_VERSION.list
apt update

# Install MongoDB
sudo apt install -y mongodb-org=4.4.15 mongodb-org-server=4.4.15 mongodb-org-shell=4.4.15 mongodb-org-mongos=4.4.15 mongodb-org-tools=4.4.15
systemctl enable mongod
systemctl start mongod

# Install NodeJS based on MONSTERPI_NODEJS_VERSION
curl -sL https://deb.nodesource.com/setup_$MONSTERPI_NODEJS_VERSION | bash -
apt update
Expand Down

0 comments on commit 21c4bdb

Please sign in to comment.