Files
ProxmoxVE/install/mongodb-install.sh

33 lines
770 B
Bash
Raw Normal View History

2024-05-18 16:32:33 +02:00
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
2024-05-18 16:32:33 +02:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.mongodb.com/de-de
2024-05-18 16:32:33 +02:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2024-05-18 16:32:33 +02:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
read -p "${TAB3}Do you want to install MongoDB 8.0 instead of 7.0? [y/N]: " install_mongodb_8
if [[ "$install_mongodb_8" =~ ^[Yy]$ ]]; then
MONGO_VERSION="8.0" setup_mongodb
else
MONGO_VERSION="7.0" setup_mongodb
fi
sed -i 's/bindIp: 127.0.0.1/bindIp: 0.0.0.0/' /etc/mongod.conf
msg_ok "Installed MongoDB $MONGO_VERSION"
2024-05-18 16:32:33 +02:00
motd_ssh
customize
msg_info "Cleaning up"
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
2024-05-18 16:32:33 +02:00
msg_ok "Cleaned"