harmonize tools.func
This commit is contained in:
parent
b93927d8e1
commit
06cf03dcb1
@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
|
|||||||
$STD apt-get install -y python3-distutils
|
$STD apt-get install -y python3-distutils
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
install_mariadb
|
setup_mariadb
|
||||||
|
|
||||||
msg_info "Setting up Bluecherry"
|
msg_info "Setting up Bluecherry"
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
@ -29,22 +29,22 @@ PYTHON_VERSION="3.12" setup_uv
|
|||||||
# minimal call: fetch_and_deploy_gh_release "defguard" "DefGuard/defguard" "binary"
|
# minimal call: fetch_and_deploy_gh_release "defguard" "DefGuard/defguard" "binary"
|
||||||
#echo -e "defguard done"
|
#echo -e "defguard done"
|
||||||
|
|
||||||
#PHP_VERSION=8.2 PHP_FPM=YES install_php
|
#PHP_VERSION=8.2 PHP_FPM=YES setup_php
|
||||||
#install_composer
|
#setup_composer
|
||||||
|
|
||||||
# Example Setting for Test
|
# Example Setting for Test
|
||||||
#NODE_MODULE="pnpm@10.1,yarn"
|
#NODE_MODULE="pnpm@10.1,yarn"
|
||||||
#RELEASE=$(curl_handler -fsSL https://api.github.com/repos/babybuddy/babybuddy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
#RELEASE=$(curl_handler -fsSL https://api.github.com/repos/babybuddy/babybuddy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
#msg_ok "Get Release $RELEASE"
|
#msg_ok "Get Release $RELEASE"
|
||||||
#NODE_VERSION="22" NODE_MODULE="yarn" install_node_and_modules
|
#NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
||||||
|
|
||||||
#PG_VERSION="16" install_postgresql
|
#PG_VERSION="16" setup_postgresql
|
||||||
#MARIADB_VERSION="11.8"
|
#MARIADB_VERSION="11.8"
|
||||||
#MYSQL_VERSION="8.0"
|
#MYSQL_VERSION="8.0"
|
||||||
|
|
||||||
#install_mongodb
|
#install_mongodb
|
||||||
#install_postgresql
|
#setup_postgresql
|
||||||
#install_mariadb
|
#setup_mariadb
|
||||||
#install_mysql
|
#install_mysql
|
||||||
|
|
||||||
# msg_info "Setup DISTRO env"
|
# msg_info "Setup DISTRO env"
|
||||||
|
@ -15,32 +15,32 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies (Patience)"
|
msg_info "Installing Dependencies (Patience)"
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
apache2 \
|
apache2 \
|
||||||
cron \
|
cron \
|
||||||
flac \
|
flac \
|
||||||
vorbis-tools \
|
vorbis-tools \
|
||||||
lame \
|
lame \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
gosu \
|
gosu \
|
||||||
wget \
|
wget \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
make \
|
make \
|
||||||
inotify-tools \
|
inotify-tools \
|
||||||
libavcodec-extra \
|
libavcodec-extra \
|
||||||
libev-libevent-dev \
|
libev-libevent-dev \
|
||||||
libmp3lame-dev \
|
libmp3lame-dev \
|
||||||
libtheora-dev \
|
libtheora-dev \
|
||||||
libvorbis-dev \
|
libvorbis-dev \
|
||||||
libvpx-dev
|
libvpx-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PHP_VERSION=8.4
|
PHP_VERSION=8.4
|
||||||
PHP_MODULE=bcmath,bz2,cli,common,curl,fpm,gd,imagick,intl,mbstring,mysql,sqlite3,xml,xmlrpc,zip
|
PHP_MODULE=bcmath,bz2,cli,common,curl,fpm,gd,imagick,intl,mbstring,mysql,sqlite3,xml,xmlrpc,zip
|
||||||
PHP_APACHE=YES
|
PHP_APACHE=YES
|
||||||
install_php
|
setup_php
|
||||||
install_mariadb
|
setup_mariadb
|
||||||
|
|
||||||
msg_info "Setting up Database"
|
msg_info "Setting up Database"
|
||||||
DB_NAME=ampache2
|
DB_NAME=ampache2
|
||||||
@ -68,10 +68,10 @@ sudo mv /opt/ampache/channel/.htaccess.dist /opt/ampache/channel/.htaccess
|
|||||||
sudo cp /opt/ampache/config/ampache.cfg.php.dist /opt/ampache/config/ampache.cfg.php
|
sudo cp /opt/ampache/config/ampache.cfg.php.dist /opt/ampache/config/ampache.cfg.php
|
||||||
sudo chmod 664 /opt/ampache/rest/.htaccess /opt/ampache/play/.htaccess
|
sudo chmod 664 /opt/ampache/rest/.htaccess /opt/ampache/play/.htaccess
|
||||||
sudo sed -i 's/upload_max_filesize = .*/upload_max_filesize = 50M/' /etc/php/8.4/apache2/php.ini &&
|
sudo sed -i 's/upload_max_filesize = .*/upload_max_filesize = 50M/' /etc/php/8.4/apache2/php.ini &&
|
||||||
sudo sed -i 's/post_max_size = .*/post_max_size = 50M/' /etc/php/8.4/apache2/php.ini &&
|
sudo sed -i 's/post_max_size = .*/post_max_size = 50M/' /etc/php/8.4/apache2/php.ini &&
|
||||||
sudo sed -i 's/max_execution_time = .*/max_execution_time = 300/' /etc/php/8.4/apache2/php.ini &&
|
sudo sed -i 's/max_execution_time = .*/max_execution_time = 300/' /etc/php/8.4/apache2/php.ini &&
|
||||||
sudo sed -i 's/memory_limit = .*/memory_limit = 256M/' /etc/php/8.4/apache2/php.ini &&
|
sudo sed -i 's/memory_limit = .*/memory_limit = 256M/' /etc/php/8.4/apache2/php.ini &&
|
||||||
sudo systemctl restart apache2
|
sudo systemctl restart apache2
|
||||||
msg_ok "Installed Ampache"
|
msg_ok "Installed Ampache"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
@ -13,31 +13,31 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
PG_VERSION="16" install_postgresql
|
PG_VERSION="16" setup_postgresql
|
||||||
PHP_VERSION=8.3 PHP_MODULE="bcmath,bz2,cli,exif,common,curl,fpm,gd,imagick,intl,mbstring,pgsql,sqlite3,xml,xmlrpc,zip" install_php
|
PHP_VERSION=8.3 PHP_MODULE="bcmath,bz2,cli,exif,common,curl,fpm,gd,imagick,intl,mbstring,pgsql,sqlite3,xml,xmlrpc,zip" setup_php
|
||||||
NODE_VERSION=22 NODE_MODULE="yarn,npm@latest" install_node_and_modules
|
NODE_VERSION=22 NODE_MODULE="yarn,npm@latest" setup_nodejs
|
||||||
install_composer
|
setup_composer
|
||||||
|
|
||||||
msg_info "Installing Dependencies (Patience)"
|
msg_info "Installing Dependencies (Patience)"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
nginx \
|
nginx \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
cron \
|
cron \
|
||||||
libapache2-mod-xsendfile \
|
libapache2-mod-xsendfile \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
locales \
|
locales \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libwebp-dev
|
libwebp-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
# PG_VERSION="16" install_postgresql
|
# PG_VERSION="16" setup_postgresql
|
||||||
# PHP_VERSION=8.3 PHP_MODULE="bcmath,bz2,cli,exif,common,curl,fpm,gd,imagick,intl,mbstring,pgsql,sqlite3,xml,xmlrpc,zip" install_php
|
# PHP_VERSION=8.3 PHP_MODULE="bcmath,bz2,cli,exif,common,curl,fpm,gd,imagick,intl,mbstring,pgsql,sqlite3,xml,xmlrpc,zip" setup_php
|
||||||
# NODE_VERSION=22 NODE_MODULE="yarn,npm@latest" install_node_and_modules
|
# NODE_VERSION=22 NODE_MODULE="yarn,npm@latest" setup_nodejs
|
||||||
# install_composer
|
# setup_composer
|
||||||
|
|
||||||
msg_info "Setting up PostgreSQL Database"
|
msg_info "Setting up PostgreSQL Database"
|
||||||
DB_NAME=koel_db
|
DB_NAME=koel_db
|
||||||
@ -50,10 +50,10 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8'
|
|||||||
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';"
|
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';"
|
||||||
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'"
|
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'"
|
||||||
{
|
{
|
||||||
echo "Koel-Credentials"
|
echo "Koel-Credentials"
|
||||||
echo "Koel Database User: $DB_USER"
|
echo "Koel Database User: $DB_USER"
|
||||||
echo "Koel Database Password: $DB_PASS"
|
echo "Koel Database Password: $DB_PASS"
|
||||||
echo "Koel Database Name: $DB_NAME"
|
echo "Koel Database Name: $DB_NAME"
|
||||||
} >>~/koel.creds
|
} >>~/koel.creds
|
||||||
msg_ok "Set up PostgreSQL Database"
|
msg_ok "Set up PostgreSQL Database"
|
||||||
|
|
||||||
@ -67,14 +67,14 @@ cd /opt/koel
|
|||||||
mv .env.example .env
|
mv .env.example .env
|
||||||
$STD composer install --no-interaction
|
$STD composer install --no-interaction
|
||||||
sed -i -e "s/DB_CONNECTION=.*/DB_CONNECTION=pgsql/" \
|
sed -i -e "s/DB_CONNECTION=.*/DB_CONNECTION=pgsql/" \
|
||||||
-e "s/DB_HOST=.*/DB_HOST=localhost/" \
|
-e "s/DB_HOST=.*/DB_HOST=localhost/" \
|
||||||
-e "s/DB_DATABASE=.*/DB_DATABASE=$DB_NAME/" \
|
-e "s/DB_DATABASE=.*/DB_DATABASE=$DB_NAME/" \
|
||||||
-e "s/DB_PORT=.*/DB_PORT=5432/" \
|
-e "s/DB_PORT=.*/DB_PORT=5432/" \
|
||||||
-e "s|APP_KEY=.*|APP_KEY=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)|" \
|
-e "s|APP_KEY=.*|APP_KEY=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)|" \
|
||||||
-e "s/DB_USERNAME=.*/DB_USERNAME=$DB_USER/" \
|
-e "s/DB_USERNAME=.*/DB_USERNAME=$DB_USER/" \
|
||||||
-e "s|DB_PASSWORD=.*|DB_PASSWORD=$DB_PASS|" \
|
-e "s|DB_PASSWORD=.*|DB_PASSWORD=$DB_PASS|" \
|
||||||
-e "s|MEDIA_PATH=.*|MEDIA_PATH=/opt/koel_media|" \
|
-e "s|MEDIA_PATH=.*|MEDIA_PATH=/opt/koel_media|" \
|
||||||
-e "s|FFMPEG_PATH=/usr/local/bin/ffmpeg|FFMPEG_PATH=/usr/bin/ffmpeg|" /opt/koel/.env
|
-e "s|FFMPEG_PATH=/usr/local/bin/ffmpeg|FFMPEG_PATH=/usr/bin/ffmpeg|" /opt/koel/.env
|
||||||
php artisan koel:init --no-assets
|
php artisan koel:init --no-assets
|
||||||
chown -R :www-data /opt/*
|
chown -R :www-data /opt/*
|
||||||
chmod -R g+r /opt/*
|
chmod -R g+r /opt/*
|
||||||
|
@ -13,7 +13,6 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
@ -23,8 +22,8 @@ msg_ok "Installed Dependencies"
|
|||||||
|
|
||||||
## WIP - only protoype with git call
|
## WIP - only protoype with git call
|
||||||
|
|
||||||
install_go
|
setup_go
|
||||||
NODE_VERSION="22" NODE_MODULE="pnpm" install_node_and_modules
|
NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs
|
||||||
|
|
||||||
msg_info "Setup ocis"
|
msg_info "Setup ocis"
|
||||||
cd /opt
|
cd /opt
|
||||||
|
@ -16,16 +16,16 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
ffmpeg
|
ffmpeg
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setup Python3"
|
msg_info "Setup Python3"
|
||||||
$STD apt-get install -y --no-install-recommends \
|
$STD apt-get install -y --no-install-recommends \
|
||||||
python3 \
|
python3 \
|
||||||
python3-pip
|
python3-pip
|
||||||
msg_ok "Setup Python3"
|
msg_ok "Setup Python3"
|
||||||
|
|
||||||
install_node_and_modules
|
setup_nodejs
|
||||||
|
|
||||||
msg_info "Installing Open WebUI (Patience)"
|
msg_info "Installing Open WebUI (Patience)"
|
||||||
fetch_and_deploy_gh_release "open-webui/open-webui"
|
fetch_and_deploy_gh_release "open-webui/open-webui"
|
||||||
@ -55,11 +55,11 @@ msg_ok "Installed Open WebUI"
|
|||||||
|
|
||||||
read -r -p "${TAB3}Would you like to add Ollama? <y/N> " prompt
|
read -r -p "${TAB3}Would you like to add Ollama? <y/N> " prompt
|
||||||
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Installing Ollama"
|
msg_info "Installing Ollama"
|
||||||
curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz
|
curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz
|
||||||
tar -C /usr -xzf ollama-linux-amd64.tgz
|
tar -C /usr -xzf ollama-linux-amd64.tgz
|
||||||
rm -rf ollama-linux-amd64.tgz
|
rm -rf ollama-linux-amd64.tgz
|
||||||
cat <<EOF >/etc/systemd/system/ollama.service
|
cat <<EOF >/etc/systemd/system/ollama.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Ollama Service
|
Description=Ollama Service
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
@ -75,9 +75,9 @@ RestartSec=3
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl enable -q --now ollama
|
systemctl enable -q --now ollama
|
||||||
sed -i 's/ENABLE_OLLAMA_API=false/ENABLE_OLLAMA_API=true/g' /opt/openwebui/.env
|
sed -i 's/ENABLE_OLLAMA_API=false/ENABLE_OLLAMA_API=true/g' /opt/openwebui/.env
|
||||||
msg_ok "Installed Ollama"
|
msg_ok "Installed Ollama"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
@ -18,13 +18,13 @@ curl -fsSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/p
|
|||||||
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ bookworm main" >/etc/apt/sources.list.d/php.list
|
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ bookworm main" >/etc/apt/sources.list.d/php.list
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
apache2 \
|
apache2 \
|
||||||
libapache2-mod-php8.4 \
|
libapache2-mod-php8.4 \
|
||||||
php8.4-{bcmath,cli,intl,curl,zip,gd,xml,mbstring,mysql} \
|
php8.4-{bcmath,cli,intl,curl,zip,gd,xml,mbstring,mysql} \
|
||||||
composer
|
composer
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
install_mariadb
|
setup_mariadb
|
||||||
|
|
||||||
msg_info "Setting up database"
|
msg_info "Setting up database"
|
||||||
DB_NAME=firefly
|
DB_NAME=firefly
|
||||||
@ -35,10 +35,10 @@ $STD mariadb -u root -e "CREATE DATABASE $DB_NAME;"
|
|||||||
$STD mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
|
$STD mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
|
||||||
mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
||||||
{
|
{
|
||||||
echo "Firefly-Credentials"
|
echo "Firefly-Credentials"
|
||||||
echo "Firefly Database User: $DB_USER"
|
echo "Firefly Database User: $DB_USER"
|
||||||
echo "Firefly Database Password: $DB_PASS"
|
echo "Firefly Database Password: $DB_PASS"
|
||||||
echo "Firefly Database Name: $DB_NAME"
|
echo "Firefly Database Name: $DB_NAME"
|
||||||
} >>~/firefly.creds
|
} >>~/firefly.creds
|
||||||
msg_ok "Set up database"
|
msg_ok "Set up database"
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
setup_yq
|
setup_yq
|
||||||
PG_VERSION="16" install_postgresql
|
PG_VERSION="16" setup_postgresql
|
||||||
|
|
||||||
msg_info "Setting up PostgreSQL Database"
|
msg_info "Setting up PostgreSQL Database"
|
||||||
DB_NAME=hanko
|
DB_NAME=hanko
|
||||||
|
@ -15,20 +15,20 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
gcc \
|
gcc \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
libssl-dev
|
libssl-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setup Python3"
|
msg_info "Setup Python3"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
python3 python3-dev python3-pip
|
python3 python3-dev python3-pip
|
||||||
$STD pip install --upgrade pip
|
$STD pip install --upgrade pip
|
||||||
msg_ok "Setup Python3"
|
msg_ok "Setup Python3"
|
||||||
|
|
||||||
setup_uv
|
setup_uv
|
||||||
PG_VERSION=16 install_postgresql
|
PG_VERSION=16 setup_postgresql
|
||||||
|
|
||||||
msg_info "Setup Database"
|
msg_info "Setup Database"
|
||||||
DB_NAME=healthchecks_db
|
DB_NAME=healthchecks_db
|
||||||
@ -42,10 +42,10 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8'
|
|||||||
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';"
|
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';"
|
||||||
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'"
|
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'"
|
||||||
{
|
{
|
||||||
echo "healthchecks-Credentials"
|
echo "healthchecks-Credentials"
|
||||||
echo "healthchecks Database User: $DB_USER"
|
echo "healthchecks Database User: $DB_USER"
|
||||||
echo "healthchecks Database Password: $DB_PASS"
|
echo "healthchecks Database Password: $DB_PASS"
|
||||||
echo "healthchecks Database Name: $DB_NAME"
|
echo "healthchecks Database Name: $DB_NAME"
|
||||||
} >>~/healthchecks.creds
|
} >>~/healthchecks.creds
|
||||||
msg_ok "Set up Database"
|
msg_ok "Set up Database"
|
||||||
|
|
||||||
|
@ -29,9 +29,9 @@ $STD apt-get install -y \
|
|||||||
snmpd
|
snmpd
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PHP_VERSION=8.2 PHP_FPM=YES PHP_APACHE=NO PHP_MODULE="gmp,mysql,snmp" install_php
|
PHP_VERSION=8.2 PHP_FPM=YES PHP_APACHE=NO PHP_MODULE="gmp,mysql,snmp" setup_php
|
||||||
install_mariadb
|
setup_mariadb
|
||||||
install_composer
|
setup_composer
|
||||||
setup_uv
|
setup_uv
|
||||||
|
|
||||||
msg_info "Installing Python"
|
msg_info "Installing Python"
|
||||||
@ -74,7 +74,6 @@ setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/li
|
|||||||
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
|
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
|
||||||
msg_ok "Setup LibreNMS"
|
msg_ok "Setup LibreNMS"
|
||||||
|
|
||||||
|
|
||||||
msg_info "Configure MariaDB"
|
msg_info "Configure MariaDB"
|
||||||
sed -i "/\[mysqld\]/a innodb_file_per_table=1\nlower_case_table_names=0" /etc/mysql/mariadb.conf.d/50-server.cnf
|
sed -i "/\[mysqld\]/a innodb_file_per_table=1\nlower_case_table_names=0" /etc/mysql/mariadb.conf.d/50-server.cnf
|
||||||
systemctl enable -q --now mariadb
|
systemctl enable -q --now mariadb
|
||||||
|
@ -14,20 +14,20 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
curl \
|
curl \
|
||||||
sudo \
|
sudo \
|
||||||
mc \
|
mc \
|
||||||
gnupg2 postgresql \
|
gnupg2 postgresql \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
rbenv \
|
rbenv \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libarchive-dev \
|
libarchive-dev \
|
||||||
git \
|
git \
|
||||||
libmariadb-dev \
|
libmariadb-dev \
|
||||||
redis-server \
|
redis-server \
|
||||||
nginx \
|
nginx \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libyaml-dev
|
libyaml-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up PostgreSQL"
|
msg_info "Setting up PostgreSQL"
|
||||||
@ -37,10 +37,10 @@ DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)
|
|||||||
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
|
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
|
||||||
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;"
|
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;"
|
||||||
{
|
{
|
||||||
echo "Manyfold Credentials"
|
echo "Manyfold Credentials"
|
||||||
echo "Manyfold Database User: $DB_USER"
|
echo "Manyfold Database User: $DB_USER"
|
||||||
echo "Manyfold Database Password: $DB_PASS"
|
echo "Manyfold Database Password: $DB_PASS"
|
||||||
echo "Manyfold Database Name: $DB_NAME"
|
echo "Manyfold Database Name: $DB_NAME"
|
||||||
} >>~/manyfold.creds
|
} >>~/manyfold.creds
|
||||||
msg_ok "Set up PostgreSQL"
|
msg_ok "Set up PostgreSQL"
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ YARN_VERSION=$(grep '"packageManager":' /opt/manyfold/package.json | sed -E 's/.
|
|||||||
|
|
||||||
msg_ok "Downloaded Manyfold"
|
msg_ok "Downloaded Manyfold"
|
||||||
|
|
||||||
NODE_VERSION="22" NODE_MODULE="npm@latest,${YARN_VERSION}" install_node_and_modules
|
NODE_VERSION="22" NODE_MODULE="npm@latest,${YARN_VERSION}" setup_nodejs
|
||||||
RUBY_VERSION=${RUBY_INSTALL_VERSION} RUBY_INSTALL_RAILS="true" setup_rbenv_stack
|
RUBY_VERSION=${RUBY_INSTALL_VERSION} RUBY_INSTALL_RAILS="true" setup_rbenv_stack
|
||||||
|
|
||||||
# msg_info "Add ruby-build"
|
# msg_info "Add ruby-build"
|
||||||
|
@ -15,37 +15,37 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
gpg \
|
gpg \
|
||||||
openssl \
|
openssl \
|
||||||
redis \
|
redis \
|
||||||
libgbm1 \
|
libgbm1 \
|
||||||
libnss3 \
|
libnss3 \
|
||||||
libatk1.0-0 \
|
libatk1.0-0 \
|
||||||
libatk-bridge2.0-0 \
|
libatk-bridge2.0-0 \
|
||||||
libdrm2 \
|
libdrm2 \
|
||||||
libxkbcommon0 \
|
libxkbcommon0 \
|
||||||
libglib2.0-0 \
|
libglib2.0-0 \
|
||||||
libdbus-1-3 \
|
libdbus-1-3 \
|
||||||
libx11-xcb1 \
|
libx11-xcb1 \
|
||||||
libxcb1 \
|
libxcb1 \
|
||||||
libxcomposite1 \
|
libxcomposite1 \
|
||||||
libxcursor1 \
|
libxcursor1 \
|
||||||
libxdamage1 \
|
libxdamage1 \
|
||||||
libxext6 \
|
libxext6 \
|
||||||
libxi6 \
|
libxi6 \
|
||||||
libxtst6 \
|
libxtst6 \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
libxrandr2 \
|
libxrandr2 \
|
||||||
libasound2 \
|
libasound2 \
|
||||||
libxss1 \
|
libxss1 \
|
||||||
libxinerama1 \
|
libxinerama1 \
|
||||||
nginx
|
nginx
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
#configure_lxc "Semantic Search requires a dedicated GPU and at least 16GB RAM. Would you like to install it?" 100 "memory" "16000"
|
#configure_lxc "Semantic Search requires a dedicated GPU and at least 16GB RAM. Would you like to install it?" 100 "memory" "16000"
|
||||||
|
|
||||||
PG_VERSION=17 install_postgresql
|
PG_VERSION=17 setup_postgresql
|
||||||
NODE_VERSION="22" install_node_and_modules
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
msg_info "Setup Variables"
|
msg_info "Setup Variables"
|
||||||
DB_NAME=maxun_db
|
DB_NAME=maxun_db
|
||||||
@ -65,12 +65,12 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8'
|
|||||||
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';"
|
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';"
|
||||||
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'"
|
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'"
|
||||||
{
|
{
|
||||||
echo "Maxun-Credentials"
|
echo "Maxun-Credentials"
|
||||||
echo "Maxun Database User: $DB_USER"
|
echo "Maxun Database User: $DB_USER"
|
||||||
echo "Maxun Database Password: $DB_PASS"
|
echo "Maxun Database Password: $DB_PASS"
|
||||||
echo "Maxun Database Name: $DB_NAME"
|
echo "Maxun Database Name: $DB_NAME"
|
||||||
echo "Maxun JWT Secret: $JWT_SECRET"
|
echo "Maxun JWT Secret: $JWT_SECRET"
|
||||||
echo "Maxun Encryption Key: $ENCRYPTION_KEY"
|
echo "Maxun Encryption Key: $ENCRYPTION_KEY"
|
||||||
} >>~/maxun.creds
|
} >>~/maxun.creds
|
||||||
msg_ok "Set up Database"
|
msg_ok "Set up Database"
|
||||||
|
|
||||||
@ -99,9 +99,9 @@ LimitNOFILE=65536
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
{
|
{
|
||||||
echo "__________________"
|
echo "__________________"
|
||||||
echo "MinIO Admin User: $MINIO_USER"
|
echo "MinIO Admin User: $MINIO_USER"
|
||||||
echo "MinIO Admin Password: $MINIO_PASS"
|
echo "MinIO Admin Password: $MINIO_PASS"
|
||||||
} >>~/maxun.creds
|
} >>~/maxun.creds
|
||||||
cat <<EOF >/etc/default/minio
|
cat <<EOF >/etc/default/minio
|
||||||
MINIO_ROOT_USER=${MINIO_USER}
|
MINIO_ROOT_USER=${MINIO_USER}
|
||||||
|
@ -15,25 +15,25 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y --no-install-recommends \
|
$STD apt-get install -y --no-install-recommends \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libvips42 \
|
libvips42 \
|
||||||
git \
|
git \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
build-essential \
|
build-essential \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libreadline-dev \
|
libreadline-dev \
|
||||||
libyaml-dev \
|
libyaml-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
sqlite3 \
|
sqlite3 \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt1-dev \
|
libxslt1-dev \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
redis
|
redis
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
PG_VERSION=16 install_postgresql
|
PG_VERSION=16 setup_postgresql
|
||||||
|
|
||||||
msg_info "Setting up Postgresql"
|
msg_info "Setting up Postgresql"
|
||||||
DB_NAME="maybe"
|
DB_NAME="maybe"
|
||||||
@ -42,10 +42,10 @@ DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)"
|
|||||||
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
|
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
|
||||||
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;"
|
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;"
|
||||||
{
|
{
|
||||||
echo "${APPLICATION} database credentials"
|
echo "${APPLICATION} database credentials"
|
||||||
echo "Database Name: ${DB_NAME}"
|
echo "Database Name: ${DB_NAME}"
|
||||||
echo "Database User: ${DB_USER}"
|
echo "Database User: ${DB_USER}"
|
||||||
echo "Database Password: ${DB_PASS}"
|
echo "Database Password: ${DB_PASS}"
|
||||||
} >~/maybe.creds
|
} >~/maybe.creds
|
||||||
msg_ok "Setup Postgresql"
|
msg_ok "Setup Postgresql"
|
||||||
|
|
||||||
@ -58,20 +58,20 @@ RUBY_VERSION="$(cat /opt/maybe/.ruby-version)" RUBY_INSTALL_RAILS=false setup_rb
|
|||||||
cd /opt/maybe
|
cd /opt/maybe
|
||||||
cp ./.env.example ./.env
|
cp ./.env.example ./.env
|
||||||
sed -i -e '/SELF_/a RAILS_ENV=production' \
|
sed -i -e '/SELF_/a RAILS_ENV=production' \
|
||||||
-e "s/secret-value/\"$(openssl rand -hex 64)\"/" \
|
-e "s/secret-value/\"$(openssl rand -hex 64)\"/" \
|
||||||
-e "/^SECRET_KEY/a RAILS_MASTER_KEY=\"$(openssl rand -hex 16)\"" \
|
-e "/^SECRET_KEY/a RAILS_MASTER_KEY=\"$(openssl rand -hex 16)\"" \
|
||||||
-e "s/_USER=postgres/_USER=${DB_USER}/" \
|
-e "s/_USER=postgres/_USER=${DB_USER}/" \
|
||||||
-e "s/_PASSWORD=postgres/_PASSWORD=${DB_PASS}/" \
|
-e "s/_PASSWORD=postgres/_PASSWORD=${DB_PASS}/" \
|
||||||
-e "/_USER=/a POSTGRES_DB=${DB_NAME}" \
|
-e "/_USER=/a POSTGRES_DB=${DB_NAME}" \
|
||||||
-e 's/^# DISABLE/DISABLE/' \
|
-e 's/^# DISABLE/DISABLE/' \
|
||||||
./.env
|
./.env
|
||||||
sed -i -e '/_DB=/a\
|
sed -i -e '/_DB=/a\
|
||||||
\
|
\
|
||||||
REDIS_URL=redis://localhost:6379/1' \
|
REDIS_URL=redis://localhost:6379/1' \
|
||||||
-e '/_SSL/a\
|
-e '/_SSL/a\
|
||||||
RAILS_FORCE_SSL=false\
|
RAILS_FORCE_SSL=false\
|
||||||
RAILS_ASSUME_SSL=false' \
|
RAILS_ASSUME_SSL=false' \
|
||||||
./.env
|
./.env
|
||||||
rm -f ./config/credentials.yml.enc
|
rm -f ./config/credentials.yml.enc
|
||||||
$STD ./bin/bundle install
|
$STD ./bin/bundle install
|
||||||
$STD ./bin/bundle exec bootsnap precompile --gemfile -j 0
|
$STD ./bin/bundle exec bootsnap precompile --gemfile -j 0
|
||||||
|
@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
|
|||||||
$STD apt-get install -y make git
|
$STD apt-get install -y make git
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_MODULE="yarn" install_node_and_modules
|
NODE_MODULE="yarn" setup_nodejs
|
||||||
|
|
||||||
msg_info "Installing Notesnook (Patience)"
|
msg_info "Installing Notesnook (Patience)"
|
||||||
fetch_and_deploy_gh_release "notesnook" "streetwriters/notesnook" "tarball"
|
fetch_and_deploy_gh_release "notesnook" "streetwriters/notesnook" "tarball"
|
||||||
|
@ -15,14 +15,14 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
curl \
|
curl \
|
||||||
sudo \
|
sudo \
|
||||||
mc \
|
mc \
|
||||||
sqlite3
|
sqlite3
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
setup_uv
|
setup_uv
|
||||||
NODE_VERSION="22" install_node_and_modules
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
msg_info "Installing ${APPLICATION}"
|
msg_info "Installing ${APPLICATION}"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/wizarrrr/wizarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/wizarrrr/wizarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# NODE_MODULE - Comma-separated list of global modules (e.g. "yarn,@vue/cli@5.0.0")
|
# NODE_MODULE - Comma-separated list of global modules (e.g. "yarn,@vue/cli@5.0.0")
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_node_and_modules() {
|
setup_nodejs() {
|
||||||
local NODE_VERSION="${NODE_VERSION:-22}"
|
local NODE_VERSION="${NODE_VERSION:-22}"
|
||||||
local NODE_MODULE="${NODE_MODULE:-}"
|
local NODE_MODULE="${NODE_MODULE:-}"
|
||||||
local CURRENT_NODE_VERSION=""
|
local CURRENT_NODE_VERSION=""
|
||||||
@ -135,7 +135,7 @@ install_node_and_modules() {
|
|||||||
# PG_VERSION - Major PostgreSQL version (e.g. 15, 16) (default: 16)
|
# PG_VERSION - Major PostgreSQL version (e.g. 15, 16) (default: 16)
|
||||||
# PG_MODULES - Comma-separated list of extensions (e.g. "postgis,contrib")
|
# PG_MODULES - Comma-separated list of extensions (e.g. "postgis,contrib")
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
install_postgresql() {
|
setup_postgresql() {
|
||||||
local PG_VERSION="${PG_VERSION:-16}"
|
local PG_VERSION="${PG_VERSION:-16}"
|
||||||
local PG_MODULES="${PG_MODULES:-}"
|
local PG_MODULES="${PG_MODULES:-}"
|
||||||
local CURRENT_PG_VERSION=""
|
local CURRENT_PG_VERSION=""
|
||||||
@ -223,7 +223,7 @@ install_postgresql() {
|
|||||||
# MARIADB_VERSION - MariaDB version to install (e.g. 10.11, latest) (default: latest)
|
# MARIADB_VERSION - MariaDB version to install (e.g. 10.11, latest) (default: latest)
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_mariadb() {
|
setup_mariadb() {
|
||||||
local MARIADB_VERSION="${MARIADB_VERSION:-latest}"
|
local MARIADB_VERSION="${MARIADB_VERSION:-latest}"
|
||||||
local DISTRO_CODENAME
|
local DISTRO_CODENAME
|
||||||
DISTRO_CODENAME="$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)"
|
DISTRO_CODENAME="$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)"
|
||||||
@ -291,7 +291,7 @@ install_mariadb() {
|
|||||||
# MYSQL_VERSION - MySQL version to install (e.g. 5.7, 8.0) (default: 8.0)
|
# MYSQL_VERSION - MySQL version to install (e.g. 5.7, 8.0) (default: 8.0)
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_mysql() {
|
setup_mysql() {
|
||||||
local MYSQL_VERSION="${MYSQL_VERSION:-8.0}"
|
local MYSQL_VERSION="${MYSQL_VERSION:-8.0}"
|
||||||
local CURRENT_VERSION=""
|
local CURRENT_VERSION=""
|
||||||
local NEED_INSTALL=false
|
local NEED_INSTALL=false
|
||||||
@ -372,7 +372,7 @@ install_mysql() {
|
|||||||
# PHP_MAX_EXECUTION_TIME - (default: 300)
|
# PHP_MAX_EXECUTION_TIME - (default: 300)
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_php() {
|
setup_php() {
|
||||||
local PHP_VERSION="${PHP_VERSION:-8.4}"
|
local PHP_VERSION="${PHP_VERSION:-8.4}"
|
||||||
local PHP_MODULE="${PHP_MODULE:-}"
|
local PHP_MODULE="${PHP_MODULE:-}"
|
||||||
local PHP_APACHE="${PHP_APACHE:-NO}"
|
local PHP_APACHE="${PHP_APACHE:-NO}"
|
||||||
@ -477,7 +477,7 @@ install_php() {
|
|||||||
# - Installs to /usr/local/bin/composer
|
# - Installs to /usr/local/bin/composer
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_composer() {
|
setup_composer() {
|
||||||
local COMPOSER_BIN="/usr/local/bin/composer"
|
local COMPOSER_BIN="/usr/local/bin/composer"
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
export COMPOSER_ALLOW_SUPERUSER=1
|
||||||
|
|
||||||
@ -516,7 +516,7 @@ install_composer() {
|
|||||||
# GO_VERSION - Version to install (e.g. 1.22.2 or latest)
|
# GO_VERSION - Version to install (e.g. 1.22.2 or latest)
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_go() {
|
setup_go() {
|
||||||
local ARCH
|
local ARCH
|
||||||
case "$(uname -m)" in
|
case "$(uname -m)" in
|
||||||
x86_64) ARCH="amd64" ;;
|
x86_64) ARCH="amd64" ;;
|
||||||
@ -582,7 +582,7 @@ install_go() {
|
|||||||
# JAVA_VERSION - Temurin JDK version to install (e.g. 17, 21)
|
# JAVA_VERSION - Temurin JDK version to install (e.g. 17, 21)
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_java() {
|
setup_java() {
|
||||||
local JAVA_VERSION="${JAVA_VERSION:-21}"
|
local JAVA_VERSION="${JAVA_VERSION:-21}"
|
||||||
local DISTRO_CODENAME
|
local DISTRO_CODENAME
|
||||||
DISTRO_CODENAME=$(awk -F= '/VERSION_CODENAME/ { print $2 }' /etc/os-release)
|
DISTRO_CODENAME=$(awk -F= '/VERSION_CODENAME/ { print $2 }' /etc/os-release)
|
||||||
@ -633,7 +633,7 @@ install_java() {
|
|||||||
# MONGO_VERSION - MongoDB major version to install (e.g. 7.0, 8.0)
|
# MONGO_VERSION - MongoDB major version to install (e.g. 7.0, 8.0)
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_mongodb() {
|
setup_mongodb() {
|
||||||
local MONGO_VERSION="${MONGO_VERSION:-8.0}"
|
local MONGO_VERSION="${MONGO_VERSION:-8.0}"
|
||||||
local DISTRO_ID DISTRO_CODENAME MONGO_BASE_URL
|
local DISTRO_ID DISTRO_CODENAME MONGO_BASE_URL
|
||||||
DISTRO_ID=$(awk -F= '/^ID=/{ gsub(/"/,"",$2); print $2 }' /etc/os-release)
|
DISTRO_ID=$(awk -F= '/^ID=/{ gsub(/"/,"",$2); print $2 }' /etc/os-release)
|
||||||
@ -1365,7 +1365,7 @@ create_selfsigned_certs() {
|
|||||||
# RUST_CRATES - Comma-separated list of crates (e.g. "cargo-edit,wasm-pack@0.12.1")
|
# RUST_CRATES - Comma-separated list of crates (e.g. "cargo-edit,wasm-pack@0.12.1")
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_rust_and_crates() {
|
setup_rust() {
|
||||||
local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}"
|
local RUST_TOOLCHAIN="${RUST_TOOLCHAIN:-stable}"
|
||||||
local RUST_CRATES="${RUST_CRATES:-}"
|
local RUST_CRATES="${RUST_CRATES:-}"
|
||||||
local CARGO_BIN="${HOME}/.cargo/bin"
|
local CARGO_BIN="${HOME}/.cargo/bin"
|
||||||
@ -1426,7 +1426,7 @@ install_rust_and_crates() {
|
|||||||
# - Supports Alpine and Debian-based systems
|
# - Supports Alpine and Debian-based systems
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
install_adminer() {
|
setup_adminer() {
|
||||||
if grep -qi alpine /etc/os-release; then
|
if grep -qi alpine /etc/os-release; then
|
||||||
msg_info "Installing Adminer (Alpine)"
|
msg_info "Installing Adminer (Alpine)"
|
||||||
mkdir -p /var/www/localhost/htdocs/adminer
|
mkdir -p /var/www/localhost/htdocs/adminer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user