mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-11 00:16:57 +00:00
safebucket: retry the garage download, record admin credentials
This commit is contained in:
@@ -24,7 +24,7 @@ if [[ -z "$GARAGE_VERSION" ]]; then
|
||||
msg_error "Could not determine latest stable Garage version"
|
||||
exit 1
|
||||
fi
|
||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GARAGE_VERSION}/$(arch_resolve "x86_64-unknown-linux-musl" "aarch64-unknown-linux-musl")/garage" -o /usr/local/bin/garage
|
||||
curl_download "/usr/local/bin/garage" "https://garagehq.deuxfleurs.fr/_releases/${GARAGE_VERSION}/$(arch_resolve "x86_64-unknown-linux-musl" "aarch64-unknown-linux-musl")/garage"
|
||||
chmod +x /usr/local/bin/garage
|
||||
mkdir -p /opt/garage/{data,meta}
|
||||
RPC_SECRET=$(openssl rand -hex 32)
|
||||
@@ -195,6 +195,11 @@ auth:
|
||||
EOF
|
||||
chmod 600 /opt/safebucket/config.yaml
|
||||
chown -R safebucket:safebucket /opt/safebucket
|
||||
cat <<EOF >~/safebucket.creds
|
||||
Safebucket Admin
|
||||
Username: admin@safebucket.io
|
||||
Password: ${ADMIN_PASSWORD}
|
||||
EOF
|
||||
msg_ok "Configured Safebucket"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
Reference in New Issue
Block a user