mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-22 19:25:12 +00:00
Since 20261018 Silo uses ~/.silo as its config directory and stops when that path is a file, which the version file named after the app was. Update moves an existing file to ~/.silo_s3.
38 lines
860 B
Bash
38 lines
860 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
# Author: MickLesk (CanbiZ)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://github.com/pgsty/silo
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "binary"
|
|
|
|
msg_info "Configuring Silo"
|
|
mkdir -p /opt/silo_data
|
|
chown silo:silo /opt/silo_data
|
|
SILO_ROOT_PASSWORD=$(random_password 32)
|
|
cat <<EOF >/etc/default/silo
|
|
MINIO_VOLUMES="/opt/silo_data"
|
|
MINIO_OPTS="--console-address :9001"
|
|
MINIO_ROOT_USER="silo-admin"
|
|
MINIO_ROOT_PASSWORD="${SILO_ROOT_PASSWORD}"
|
|
EOF
|
|
chmod 600 /etc/default/silo
|
|
msg_ok "Configured Silo"
|
|
|
|
msg_info "Starting Silo"
|
|
systemctl enable -q --now silo
|
|
msg_ok "Started Silo"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|