Merge branch 'community-scripts:main' into main
This commit is contained in:
@@ -9,7 +9,7 @@ APP="authentik"
|
||||
var_tags="${var_tags:-auth}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-4096}"
|
||||
var_disk="${var_disk:-10}"
|
||||
var_disk="${var_disk:-16}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
@@ -51,7 +51,14 @@ function update_script() {
|
||||
msg_info "Building HyperDX"
|
||||
$STD yarn install
|
||||
$STD yarn workspace @hyperdx/common-utils run build
|
||||
$STD yarn workspace @hyperdx/api run build
|
||||
rm -rf /opt/clickstack/packages/api/build
|
||||
yarn workspace @hyperdx/api exec tsc >>"$(get_active_logfile)" 2>&1 || true
|
||||
$STD yarn workspace @hyperdx/api exec tsc-alias
|
||||
cp -r /opt/clickstack/packages/api/src/opamp/proto /opt/clickstack/packages/api/build/opamp/ 2>/dev/null || true
|
||||
[[ -f /opt/clickstack/packages/api/build/index.js ]] || {
|
||||
msg_error "HyperDX API build failed: build/index.js not found"
|
||||
exit 1
|
||||
}
|
||||
$STD yarn workspace @hyperdx/app run build
|
||||
msg_ok "Built HyperDX"
|
||||
|
||||
@@ -83,6 +90,7 @@ function update_script() {
|
||||
exit
|
||||
}
|
||||
|
||||
export CLICKSTACK="no"
|
||||
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "CLICKSTACK" --yesno "Install ClickStack observability stack?\n\n(HyperDX UI + OTel Collector + MongoDB)\nRequires: 4 CPU, 8GB RAM, 30GB Disk" 12 58); then
|
||||
export CLICKSTACK="yes"
|
||||
var_cpu="4"
|
||||
|
||||
6
ct/headers/stoatchat
Normal file
6
ct/headers/stoatchat
Normal file
@@ -0,0 +1,6 @@
|
||||
_____ __ __ __ __
|
||||
/ ___// /_____ ____ _/ /______/ /_ ____ _/ /_
|
||||
\__ \/ __/ __ \/ __ `/ __/ ___/ __ \/ __ `/ __/
|
||||
___/ / /_/ /_/ / /_/ / /_/ /__/ / / / /_/ / /_
|
||||
/____/\__/\____/\__,_/\__/\___/_/ /_/\__,_/\__/
|
||||
|
||||
6
ct/headers/xyops
Normal file
6
ct/headers/xyops
Normal file
@@ -0,0 +1,6 @@
|
||||
____
|
||||
_ ____ __/ __ \____ _____
|
||||
| |/_/ / / / / / / __ \/ ___/
|
||||
_> </ /_/ / /_/ / /_/ (__ )
|
||||
/_/|_|\__, /\____/ .___/____/
|
||||
/____/ /_/
|
||||
44
ct/hoodik.sh
44
ct/hoodik.sh
@@ -8,9 +8,9 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
||||
|
||||
APP="Hoodik"
|
||||
var_tags="${var_tags:-cloud;storage}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-4096}"
|
||||
var_disk="${var_disk:-20}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-1024}"
|
||||
var_disk="${var_disk:-5}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
@@ -25,53 +25,31 @@ function update_script() {
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -f /usr/local/bin/hoodik ]]; then
|
||||
if [[ ! -f /opt/hoodik/hoodik ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "hoodik" "hudikhq/hoodik"; then
|
||||
msg_info "Stopping Services"
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop hoodik
|
||||
msg_ok "Stopped Services"
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing up Configuration"
|
||||
cp /opt/hoodik/.env /opt/hoodik.env.bak
|
||||
msg_ok "Backed up Configuration"
|
||||
|
||||
msg_info "Updating Hoodik (Patience - this takes 15-20 minutes)"
|
||||
source ~/.cargo/env
|
||||
rm -rf /opt/hoodik
|
||||
fetch_and_deploy_gh_release "hoodik" "hudikhq/hoodik" "tarball" "latest" "/opt/hoodik"
|
||||
cd /opt/hoodik
|
||||
|
||||
msg_info "Building Frontend"
|
||||
$STD yarn install --frozen-lockfile
|
||||
$STD yarn wasm-pack
|
||||
$STD yarn web:build
|
||||
msg_ok "Built Frontend"
|
||||
|
||||
msg_info "Building Backend"
|
||||
$STD cargo build --release
|
||||
cp /opt/hoodik/target/release/hoodik /usr/local/bin/hoodik
|
||||
chmod +x /usr/local/bin/hoodik
|
||||
msg_ok "Updated Hoodik"
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hoodik" "hudikhq/hoodik" "prebuild" "latest" "/opt/hoodik" "*x86_64.tar.gz"
|
||||
|
||||
msg_info "Restoring Configuration"
|
||||
cp /opt/hoodik.env.bak /opt/hoodik/.env
|
||||
rm -f /opt/hoodik.env.bak
|
||||
msg_ok "Restored Configuration"
|
||||
|
||||
msg_info "Cleaning Up"
|
||||
rm -rf /opt/hoodik/target
|
||||
rm -rf /root/.cargo/registry
|
||||
rm -rf /opt/hoodik/node_modules
|
||||
msg_ok "Cleaned"
|
||||
|
||||
msg_info "Starting Services"
|
||||
msg_info "Starting Service"
|
||||
systemctl start hoodik
|
||||
msg_ok "Started Services"
|
||||
msg_ok "Updated Successfully"
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
@@ -83,4 +61,4 @@ description
|
||||
msg_ok "Completed successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5443${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5443/auth/register${CL}"
|
||||
|
||||
@@ -39,10 +39,7 @@ function update_script() {
|
||||
msg_info "Building Application"
|
||||
cd /opt/puter
|
||||
$STD npm ci
|
||||
cd /opt/puter/src/gui
|
||||
$STD npm run build
|
||||
cd /opt/puter
|
||||
cp -r src/gui/dist dist
|
||||
msg_ok "Built Application"
|
||||
|
||||
msg_info "Starting Service"
|
||||
@@ -60,4 +57,4 @@ description
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:4100${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}.nip.io:4100${CL}"
|
||||
|
||||
85
ct/stoatchat.sh
Normal file
85
ct/stoatchat.sh
Normal file
@@ -0,0 +1,85 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||
# Source: https://github.com/stoatchat/stoatchat
|
||||
|
||||
APP="Stoatchat"
|
||||
var_tags="${var_tags:-chat;messaging;community}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-10240}"
|
||||
var_disk="${var_disk:-30}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/stoatchat ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "stoatchat" "stoatchat/stoatchat"; then
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop stoatchat-api stoatchat-events stoatchat-autumn stoatchat-january stoatchat-crond
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
msg_info "Backing up Configuration"
|
||||
cp /Revolt.toml /opt/stoatchat_revolt.toml.bak
|
||||
msg_ok "Backed up Configuration"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "stoatchat" "stoatchat/stoatchat" "tarball"
|
||||
|
||||
msg_info "Rebuilding Backend (Patience)"
|
||||
cd /opt/stoatchat
|
||||
$STD cargo build --release --bins -j 2
|
||||
msg_ok "Rebuilt Backend"
|
||||
|
||||
msg_info "Updating Web Frontend"
|
||||
FORWEB_VERSION=$(get_latest_github_release "stoatchat/for-web")
|
||||
$STD git -C /opt/stoatchat-web fetch --tags
|
||||
$STD git -C /opt/stoatchat-web checkout "$FORWEB_VERSION"
|
||||
$STD git -C /opt/stoatchat-web submodule update --init --recursive
|
||||
cd /opt/stoatchat-web
|
||||
$STD pnpm install --frozen-lockfile
|
||||
$STD pnpm --filter stoat.js build
|
||||
$STD pnpm --filter solid-livekit-components build
|
||||
$STD pnpm --filter "@lingui-solid/babel-plugin-lingui-macro" build
|
||||
$STD pnpm --filter "@lingui-solid/babel-plugin-extract-messages" build
|
||||
$STD pnpm --filter client exec lingui compile --typescript
|
||||
$STD pnpm --filter client exec node scripts/copyAssets.mjs
|
||||
$STD pnpm --filter client exec panda codegen
|
||||
$STD pnpm --filter client exec vite build
|
||||
msg_ok "Updated Web Frontend"
|
||||
|
||||
msg_info "Restoring Configuration"
|
||||
cp /opt/stoatchat_revolt.toml.bak /Revolt.toml
|
||||
rm -f /opt/stoatchat_revolt.toml.bak
|
||||
msg_ok "Restored Configuration"
|
||||
|
||||
msg_info "Starting Services"
|
||||
systemctl start stoatchat-api stoatchat-events stoatchat-autumn stoatchat-january stoatchat-crond
|
||||
msg_ok "Started Services"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
|
||||
72
ct/xyops.sh
Normal file
72
ct/xyops.sh
Normal file
@@ -0,0 +1,72 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||
# Source: https://github.com/pixlcore/xyops
|
||||
|
||||
APP="xyOps"
|
||||
var_tags="${var_tags:-scheduler;automation;monitoring}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-2048}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/xyops ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "xyops" "pixlcore/xyops"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop xyops
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
msg_info "Backing up Data"
|
||||
cp -r /opt/xyops/data /opt/xyops_data_backup
|
||||
cp -r /opt/xyops/conf /opt/xyops_conf_backup
|
||||
msg_ok "Backed up Data"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "xyops" "pixlcore/xyops" "tarball"
|
||||
|
||||
msg_info "Rebuilding Application"
|
||||
cd /opt/xyops
|
||||
$STD npm install
|
||||
$STD node bin/build.js dist
|
||||
chmod 644 /opt/xyops/node_modules/useragent-ng/lib/regexps.js
|
||||
msg_ok "Rebuilt Application"
|
||||
|
||||
msg_info "Restoring Data"
|
||||
cp -r /opt/xyops_data_backup/. /opt/xyops/data
|
||||
cp -r /opt/xyops_conf_backup/. /opt/xyops/conf
|
||||
rm -rf /opt/xyops_data_backup /opt/xyops_conf_backup
|
||||
msg_ok "Restored Data"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start xyops
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5522${CL}"
|
||||
Reference in New Issue
Block a user