This commit is contained in:
CanbiZ 2025-05-14 09:32:07 +02:00
parent b8ee111132
commit 1d8029524d
2 changed files with 7 additions and 7 deletions

View File

@ -11,8 +11,8 @@ var_tags="${var_tags:-erp}"
var_disk="${var_disk:-6}" var_disk="${var_disk:-6}"
var_cpu="${var_cpu:-4}" var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-2048}" var_ram="${var_ram:-2048}"
var_os="${var_os:-ubuntu}" var_os="${var_os:-debian}"
var_version="${var_version:-24.04}" var_version="${var_version:-12}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"

View File

@ -112,10 +112,10 @@ install_postgresql() {
msg_ok "PostgreSQL $PG_VERSION is already installed" msg_ok "PostgreSQL $PG_VERSION is already installed"
return return
fi fi
msg_info "Detected PostgreSQL $CURRENT_PG_VERSION, preparing upgrade to $PG_VERSION" echo -e "Detected PostgreSQL $CURRENT_PG_VERSION, preparing upgrade to $PG_VERSION"
NEED_PG_INSTALL=true NEED_PG_INSTALL=true
else else
msg_info "PostgreSQL not installed, proceeding with fresh install of $PG_VERSION" echo -e "PostgreSQL not installed, proceeding with fresh install of $PG_VERSION"
NEED_PG_INSTALL=true NEED_PG_INSTALL=true
fi fi
@ -576,7 +576,7 @@ fetch_and_deploy_gh_release() {
$STD msg_info "Already running the latest version ($tag). Skipping update." $STD msg_info "Already running the latest version ($tag). Skipping update."
return 0 return 0
fi fi
local base_url="https://github.com/$repo/releases/download/v$tag" local base_url="https://github.com/$repo/releases/download/v$tag"
local tmpdir local tmpdir
tmpdir=$(mktemp -d) || return 1 tmpdir=$(mktemp -d) || return 1
@ -632,12 +632,12 @@ fetch_and_deploy_gh_release() {
if [[ -z "$url" ]]; then if [[ -z "$url" ]]; then
# Use tarball_url directly from API response instead of constructing our own URL # Use tarball_url directly from API response instead of constructing our own URL
url=$(echo "$api_response" | jq -r '.tarball_url // empty') url=$(echo "$api_response" | jq -r '.tarball_url // empty')
# If tarball_url is empty for some reason, fall back to a constructed URL as before # If tarball_url is empty for some reason, fall back to a constructed URL as before
if [[ -z "$url" ]]; then if [[ -z "$url" ]]; then
url="https://github.com/$repo/archive/refs/tags/v$version.tar.gz" url="https://github.com/$repo/archive/refs/tags/v$version.tar.gz"
fi fi
$STD msg_info "Using GitHub source tarball: $url" $STD msg_info "Using GitHub source tarball: $url"
fi fi
local filename="${url##*/}" local filename="${url##*/}"