mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-29 05:30:53 +00:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 81d49a3d36 | |||
| 06824fc534 | |||
| 1eb45714f5 | |||
| ddf05a1c2d | |||
| a43ac644da | |||
| 5d59291bb1 | |||
| f553329754 | |||
| 6ece8c4de9 | |||
| 581b332c66 | |||
| 0632f99343 | |||
| fecad57187 | |||
| bb7b612d5f | |||
| 2c22e03774 | |||
| 6ca9569dc3 |
+15
-1
@@ -445,17 +445,31 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## 2026-04-25
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- Transmute: Fix ffmpeg detection [@tremor021](https://github.com/tremor021) ([#14008](https://github.com/community-scripts/ProxmoxVE/pull/14008))
|
||||||
|
|
||||||
## 2026-04-24
|
## 2026-04-24
|
||||||
|
|
||||||
### 🆕 New Scripts
|
### 🆕 New Scripts
|
||||||
|
|
||||||
- Transmute ([#13935](https://github.com/community-scripts/ProxmoxVE/pull/13935))
|
- Apprise-API ([#13934](https://github.com/community-scripts/ProxmoxVE/pull/13934))
|
||||||
|
- fireshare ([#13995](https://github.com/community-scripts/ProxmoxVE/pull/13995))
|
||||||
|
- Transmute ([#13935](https://github.com/community-scripts/ProxmoxVE/pull/13935))
|
||||||
- Jitsi-Meet ([#13897](https://github.com/community-scripts/ProxmoxVE/pull/13897))
|
- Jitsi-Meet ([#13897](https://github.com/community-scripts/ProxmoxVE/pull/13897))
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
- Update wger.sh [@Soppster1029](https://github.com/Soppster1029) ([#13977](https://github.com/community-scripts/ProxmoxVE/pull/13977))
|
- Update wger.sh [@Soppster1029](https://github.com/Soppster1029) ([#13977](https://github.com/community-scripts/ProxmoxVE/pull/13977))
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- Refactor: Ghostfolio [@MickLesk](https://github.com/MickLesk) ([#13990](https://github.com/community-scripts/ProxmoxVE/pull/13990))
|
||||||
|
|
||||||
## 2026-04-23
|
## 2026-04-23
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|||||||
@@ -0,0 +1,75 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: SystemIdleProcess
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/caronc/apprise-api
|
||||||
|
|
||||||
|
APP="Apprise-API"
|
||||||
|
var_tags="${var_tags:-notification}"
|
||||||
|
var_cpu="${var_cpu:-1}"
|
||||||
|
var_ram="${var_ram:-512}"
|
||||||
|
var_disk="${var_disk:-2}"
|
||||||
|
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/apprise" ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
if check_for_gh_release "apprise" "caronc/apprise-api"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop apprise-api
|
||||||
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
PYTHON_VERSION="3.12" setup_uv
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "apprise" "caronc/apprise-api" "tarball"
|
||||||
|
|
||||||
|
msg_info "Updating Apprise-API"
|
||||||
|
cd /opt/apprise
|
||||||
|
cp ./requirements.txt /etc/requirements.txt
|
||||||
|
$STD apt install -y nginx git
|
||||||
|
$STD uv pip install -r requirements.txt gunicorn supervisor --system
|
||||||
|
cp -fr apprise_api/static /usr/share/nginx/html/s/
|
||||||
|
mv apprise_api/ webapp
|
||||||
|
touch /etc/nginx/server-override.conf
|
||||||
|
touch /etc/nginx/location-override.conf
|
||||||
|
mkdir -p /config/store /attach /plugin /tmp/apprise /opt/apprise/logs
|
||||||
|
chmod 1777 /tmp/apprise && chmod 777 /config /config/store /attach /plugin /opt/apprise/logs
|
||||||
|
sed -i \
|
||||||
|
-e '/[[]program:nginx]/,/^[[]/ s|stdout_logfile=/dev/stdout|stdout_logfile=/opt/apprise/logs/nginx.log|' \
|
||||||
|
-e '/[[]program:nginx]/,/^[[]/ s|stderr_logfile=/dev/stderr|stderr_logfile=/opt/apprise/logs/nginx_error.log|' \
|
||||||
|
-e '/[[]program:gunicorn]/,/^[[]/ s|stdout_logfile=/dev/stdout|stdout_logfile=/opt/apprise/logs/gunicorn.log|' \
|
||||||
|
-e '/[[]program:gunicorn]/,/^[[]/ s|stderr_logfile=/dev/stderr|stderr_logfile=/opt/apprise/logs/gunicorn_error.log|' \
|
||||||
|
-e '/[[]supervisord]/,/^[[]/ s|logfile=/dev/null|logfile=/opt/apprise/logs/supervisor.log|' \
|
||||||
|
-e 's|_maxbytes=0|_maxbytes=10485760|g' \
|
||||||
|
/opt/apprise/webapp/etc/supervisord.conf
|
||||||
|
msg_ok "Updated Apprise-API"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
systemctl start apprise-api
|
||||||
|
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}:8000${CL}"
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: Slaviša Arežina (tremor021)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/ShaneIsrael/fireshare
|
||||||
|
|
||||||
|
APP="Fireshare"
|
||||||
|
var_tags="${var_tags:-sharing;video}"
|
||||||
|
var_cpu="${var_cpu:-2}"
|
||||||
|
var_ram="${var_ram:-2048}"
|
||||||
|
var_disk="${var_disk:-10}"
|
||||||
|
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/fireshare ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "fireshare" "ShaneIsrael/fireshare"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop fireshare
|
||||||
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
mv /opt/fireshare/fireshare.env /opt
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball"
|
||||||
|
mv /opt/fireshare.env /opt/fireshare
|
||||||
|
rm -f /usr/local/bin/fireshare
|
||||||
|
|
||||||
|
msg_info "Updating Fireshare"
|
||||||
|
cd /opt/fireshare
|
||||||
|
$STD uv venv --clear
|
||||||
|
$STD .venv/bin/python -m ensurepip --upgrade
|
||||||
|
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
|
||||||
|
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
|
||||||
|
cp .venv/bin/fireshare /usr/local/bin/fireshare
|
||||||
|
export FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()"
|
||||||
|
export DATA_DIRECTORY=/opt/fireshare-data
|
||||||
|
export IMAGE_DIRECTORY=/opt/fireshare-images
|
||||||
|
export VIDEO_DIRECTORY=/opt/fireshare-videos
|
||||||
|
export PROCESSED_DIRECTORY=/opt/fireshare-processed
|
||||||
|
$STD uv run flask db upgrade
|
||||||
|
msg_ok "Updated Fireshare"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
systemctl start fireshare
|
||||||
|
msg_ok "Started Service"
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
|
fi
|
||||||
|
cleanup_lxc
|
||||||
|
|
||||||
|
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}"
|
||||||
@@ -47,6 +47,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating Ghostfolio"
|
msg_info "Updating Ghostfolio"
|
||||||
mv /opt/env.backup /opt/ghostfolio/.env
|
mv /opt/env.backup /opt/ghostfolio/.env
|
||||||
|
sed -i -E '/^DATABASE_URL=/ s/[?&]sslmode=prefer//g' /opt/ghostfolio/.env
|
||||||
cd /opt/ghostfolio
|
cd /opt/ghostfolio
|
||||||
$STD npm ci
|
$STD npm ci
|
||||||
$STD npm run build:production
|
$STD npm run build:production
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
___ _ ___ ____ ____
|
||||||
|
/ | ____ ____ _____(_)_______ / | / __ \/ _/
|
||||||
|
/ /| | / __ \/ __ \/ ___/ / ___/ _ \______/ /| | / /_/ // /
|
||||||
|
/ ___ |/ /_/ / /_/ / / / (__ ) __/_____/ ___ |/ ____// /
|
||||||
|
/_/ |_/ .___/ .___/_/ /_/____/\___/ /_/ |_/_/ /___/
|
||||||
|
/_/ /_/
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
_______ __
|
||||||
|
/ ____(_)_______ _____/ /_ ____ _________
|
||||||
|
/ /_ / / ___/ _ \/ ___/ __ \/ __ `/ ___/ _ \
|
||||||
|
/ __/ / / / / __(__ ) / / / /_/ / / / __/
|
||||||
|
/_/ /_/_/ \___/____/_/ /_/\__,_/_/ \___/
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
__________ ________ __
|
||||||
|
/_ __/ __ \/ ____/ //_/
|
||||||
|
/ / / /_/ / __/ / ,<
|
||||||
|
/ / / _, _/ /___/ /| |
|
||||||
|
/_/ /_/ |_/_____/_/ |_|
|
||||||
|
|
||||||
+84
@@ -0,0 +1,84 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# 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/mauriceboe/TREK
|
||||||
|
|
||||||
|
APP="TREK"
|
||||||
|
var_tags="${var_tags:-travel;planning;collaboration}"
|
||||||
|
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/trek ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "trek" "mauriceboe/TREK"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop trek
|
||||||
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
msg_info "Backing up Data"
|
||||||
|
cp /opt/trek/server/.env /opt/trek.env.bak
|
||||||
|
mv /opt/trek/data /opt/trek-data.bak
|
||||||
|
mv /opt/trek/uploads /opt/trek-uploads.bak
|
||||||
|
msg_ok "Backed up Data"
|
||||||
|
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "trek" "mauriceboe/TREK" "tarball"
|
||||||
|
|
||||||
|
msg_info "Building Client"
|
||||||
|
cd /opt/trek/client
|
||||||
|
$STD npm ci
|
||||||
|
$STD npm run build
|
||||||
|
mkdir -p /opt/trek/server/public
|
||||||
|
cp -r /opt/trek/client/dist/* /opt/trek/server/public/
|
||||||
|
cp -r /opt/trek/client/public/fonts /opt/trek/server/public/fonts 2>/dev/null || true
|
||||||
|
msg_ok "Built Client"
|
||||||
|
|
||||||
|
msg_info "Installing Server Dependencies"
|
||||||
|
cd /opt/trek/server
|
||||||
|
$STD npm ci
|
||||||
|
msg_ok "Installed Server Dependencies"
|
||||||
|
|
||||||
|
msg_info "Restoring Data"
|
||||||
|
mv /opt/trek-data.bak /opt/trek/data
|
||||||
|
mv /opt/trek-uploads.bak /opt/trek/uploads
|
||||||
|
rm -rf /opt/trek/server/data /opt/trek/server/uploads
|
||||||
|
ln -s /opt/trek/data /opt/trek/server/data
|
||||||
|
ln -s /opt/trek/uploads /opt/trek/server/uploads
|
||||||
|
cp /opt/trek.env.bak /opt/trek/server/.env
|
||||||
|
rm -f /opt/trek.env.bak
|
||||||
|
msg_ok "Restored Data"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
systemctl start trek
|
||||||
|
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}:3000${CL}"
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: SystemIdleProcess
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/caronc/apprise-api
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y \
|
||||||
|
nginx \
|
||||||
|
git
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
PYTHON_VERSION="3.12" setup_uv
|
||||||
|
fetch_and_deploy_gh_release "apprise" "caronc/apprise-api" "tarball"
|
||||||
|
|
||||||
|
msg_info "Setup Apprise-API"
|
||||||
|
cd /opt/apprise
|
||||||
|
cp ./requirements.txt /etc/requirements.txt
|
||||||
|
$STD uv pip install -r requirements.txt gunicorn supervisor --system
|
||||||
|
cp -fr apprise_api/static /usr/share/nginx/html/s/
|
||||||
|
mv apprise_api/ webapp
|
||||||
|
touch /etc/nginx/server-override.conf
|
||||||
|
touch /etc/nginx/location-override.conf
|
||||||
|
mkdir -p /config/store /attach /plugin /tmp/apprise /opt/apprise/logs
|
||||||
|
chmod 1777 /tmp/apprise && chmod 777 /config /config/store /attach /plugin /opt/apprise/logs
|
||||||
|
sed -i \
|
||||||
|
-e '/[[]program:nginx]/,/^[[]/ s|stdout_logfile=/dev/stdout|stdout_logfile=/opt/apprise/logs/nginx.log|' \
|
||||||
|
-e '/[[]program:nginx]/,/^[[]/ s|stderr_logfile=/dev/stderr|stderr_logfile=/opt/apprise/logs/nginx_error.log|' \
|
||||||
|
-e '/[[]program:gunicorn]/,/^[[]/ s|stdout_logfile=/dev/stdout|stdout_logfile=/opt/apprise/logs/gunicorn.log|' \
|
||||||
|
-e '/[[]program:gunicorn]/,/^[[]/ s|stderr_logfile=/dev/stderr|stderr_logfile=/opt/apprise/logs/gunicorn_error.log|' \
|
||||||
|
-e '/[[]supervisord]/,/^[[]/ s|logfile=/dev/null|logfile=/opt/apprise/logs/supervisor.log|' \
|
||||||
|
-e 's|_maxbytes=0|_maxbytes=10485760|g' \
|
||||||
|
/opt/apprise/webapp/etc/supervisord.conf
|
||||||
|
msg_ok "Setup Apprise-API"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/apprise-api.service
|
||||||
|
[Unit]
|
||||||
|
Description=Apprise-API Service
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
WorkingDirectory=/opt/apprise
|
||||||
|
ExecStart=/opt/apprise/webapp/supervisord-startup
|
||||||
|
Restart=always
|
||||||
|
RestartSec=30
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now apprise-api
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -0,0 +1,174 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: Slaviša Arežina (tremor021)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/ShaneIsrael/fireshare
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
setup_hwaccel
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y \
|
||||||
|
git \
|
||||||
|
build-essential \
|
||||||
|
cmake \
|
||||||
|
pkg-config \
|
||||||
|
yasm \
|
||||||
|
nasm \
|
||||||
|
libx264-dev \
|
||||||
|
libx265-dev \
|
||||||
|
libvpx-dev \
|
||||||
|
libaom-dev \
|
||||||
|
libopus-dev \
|
||||||
|
libvorbis-dev \
|
||||||
|
libass-dev \
|
||||||
|
libfreetype6-dev \
|
||||||
|
libmp3lame-dev \
|
||||||
|
nginx-extras \
|
||||||
|
supervisor \
|
||||||
|
libldap2-dev \
|
||||||
|
libsasl2-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libffi-dev \
|
||||||
|
libc-dev
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
NODE_VERSION=24 setup_nodejs
|
||||||
|
PYTHON_VERSION=3.14 setup_uv
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball"
|
||||||
|
|
||||||
|
msg_info "Compiling SVT-AV1 (Patience)"
|
||||||
|
cd /tmp
|
||||||
|
$STD git clone --depth 1 --branch v1.8.0 https://gitlab.com/AOMediaCodec/SVT-AV1.git
|
||||||
|
cd SVT-AV1/Build
|
||||||
|
$STD cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
|
||||||
|
$STD make -j$(nproc)
|
||||||
|
$STD make install
|
||||||
|
msg_ok "Compiled SVT-AV1"
|
||||||
|
|
||||||
|
msg_info "Installing NVDEC headers"
|
||||||
|
cd /tmp
|
||||||
|
$STD git clone --depth 1 --branch n12.1.14.0 https://github.com/FFmpeg/nv-codec-headers.git
|
||||||
|
cd nv-codec-headers
|
||||||
|
$STD make install
|
||||||
|
$STD ldconfig
|
||||||
|
msg_ok "Installed NVDEC headers"
|
||||||
|
|
||||||
|
msg_info "Compiling ffmpeg (Patience)"
|
||||||
|
cd /tmp
|
||||||
|
curl -fsSL https://ffmpeg.org/releases/ffmpeg-6.1.tar.xz -o "ffmpeg-6.1.tar.xz"
|
||||||
|
$STD tar -xf ffmpeg-6.1.tar.xz
|
||||||
|
cd ffmpeg-6.1
|
||||||
|
$STD ./configure \
|
||||||
|
--prefix=/usr/local \
|
||||||
|
--enable-gpl \
|
||||||
|
--enable-version3 \
|
||||||
|
--enable-nonfree \
|
||||||
|
--enable-ffnvcodec \
|
||||||
|
--enable-libx264 \
|
||||||
|
--enable-libx265 \
|
||||||
|
--enable-libvpx \
|
||||||
|
--enable-libaom \
|
||||||
|
--enable-libopus \
|
||||||
|
--enable-libvorbis \
|
||||||
|
--enable-libmp3lame \
|
||||||
|
--enable-libass \
|
||||||
|
--enable-libfreetype \
|
||||||
|
--enable-libsvtav1 \
|
||||||
|
--disable-debug \
|
||||||
|
--disable-doc
|
||||||
|
$STD make -j$(nproc)
|
||||||
|
$STD make install
|
||||||
|
$STD ldconfig
|
||||||
|
msg_ok "Compiled ffmpeg"
|
||||||
|
|
||||||
|
msg_info "Configuring Fireshare (Patience)"
|
||||||
|
ADMIN_PASSWORD=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
||||||
|
SECRET=$(openssl rand -base64 48)
|
||||||
|
mkdir -p /opt/fireshare-{data,videos,images,processed}
|
||||||
|
cd /opt/fireshare
|
||||||
|
$STD uv venv
|
||||||
|
$STD .venv/bin/python -m ensurepip --upgrade
|
||||||
|
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
|
||||||
|
ln -sf /usr/local/bin/ffmpeg /usr/bin/ffmpeg
|
||||||
|
ln -sf /usr/local/bin/ffprobe /usr/bin/ffprobe
|
||||||
|
echo "/usr/local/lib" >/etc/ld.so.conf.d/usr-local.conf
|
||||||
|
echo "/usr/local/cuda/lib64" >>/etc/ld.so.conf.d/usr-local.conf
|
||||||
|
echo "/usr/local/nvidia/lib" >>/etc/ld.so.conf.d/nvidia.conf
|
||||||
|
echo "/usr/local/nvidia/lib64" >>/etc/ld.so.conf.d/nvidia.conf
|
||||||
|
ldconfig
|
||||||
|
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
|
||||||
|
cp .venv/bin/fireshare /usr/local/bin/fireshare
|
||||||
|
export FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()"
|
||||||
|
export DATA_DIRECTORY=/opt/fireshare-data
|
||||||
|
export IMAGE_DIRECTORY=/opt/fireshare-images
|
||||||
|
export VIDEO_DIRECTORY=/opt/fireshare-videos
|
||||||
|
export PROCESSED_DIRECTORY=/opt/fireshare-processed
|
||||||
|
$STD uv run flask db upgrade
|
||||||
|
|
||||||
|
cat <<EOF >/opt/fireshare/fireshare.env
|
||||||
|
FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()"
|
||||||
|
DOMAIN=
|
||||||
|
ENVIRONMENT=production
|
||||||
|
DATA_DIRECTORY=/opt/fireshare-data
|
||||||
|
IMAGE_DIRECTORY=/opt/fireshare-images
|
||||||
|
VIDEO_DIRECTORY=/opt/fireshare-videos
|
||||||
|
PROCESSED_DIRECTORY=/opt/fireshare-processed
|
||||||
|
TEMPLATE_PATH=/opt/fireshare/app/server/fireshare/templates
|
||||||
|
SECRET_KEY=${SECRET}
|
||||||
|
ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
TZ=UTC
|
||||||
|
LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/lib:/usr/local/cuda/lib64:\$LD_LIBRARY_PATH
|
||||||
|
PATH=/usr/local/bin:$PATH
|
||||||
|
ENABLE_TRANSCODING=
|
||||||
|
TRANSCODE_GPU=
|
||||||
|
NVIDIA_DRIVER_CAPABILITIES=
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cd /opt/fireshare/app/client
|
||||||
|
$STD npm install
|
||||||
|
$STD npm run build
|
||||||
|
systemctl stop nginx
|
||||||
|
cp /opt/fireshare/app/nginx/prod.conf /etc/nginx/nginx.conf
|
||||||
|
sed -i 's|root /processed/|root /opt/fireshare-processed/|g' /etc/nginx/nginx.conf
|
||||||
|
sed -i 's/^user[[:space:]]\+nginx;/user root;/' /etc/nginx/nginx.conf
|
||||||
|
sed -i 's|root[[:space:]]\+/app/build;|root /opt/fireshare/app/client/build;|' /etc/nginx/nginx.conf
|
||||||
|
systemctl start nginx
|
||||||
|
|
||||||
|
cat <<EOF >~/fireshare.creds
|
||||||
|
Fireshare Admin Credentials
|
||||||
|
========================
|
||||||
|
Username: admin
|
||||||
|
Password: ${ADMIN_PASSWORD}
|
||||||
|
EOF
|
||||||
|
msg_ok "Configured Fireshare"
|
||||||
|
|
||||||
|
msg_info "Creating services"
|
||||||
|
cat <<EOF >/etc/systemd/system/fireshare.service
|
||||||
|
[Unit]
|
||||||
|
Description=Fireshare Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
WorkingDirectory=/opt/fireshare/app/server
|
||||||
|
ExecStart=/opt/fireshare/.venv/bin/gunicorn --bind=127.0.0.1:5000 "fireshare:create_app(init_schedule=True)" --workers 3 --threads 3 --preload
|
||||||
|
Restart=always
|
||||||
|
EnvironmentFile=/opt/fireshare/fireshare.env
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now fireshare
|
||||||
|
msg_ok "Created services"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -25,25 +25,12 @@ PG_VERSION="17" setup_postgresql
|
|||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
|
||||||
msg_info "Setting up Database"
|
msg_info "Setting up Database"
|
||||||
DB_NAME=ghostfolio
|
PG_DB_NAME="ghostfolio" PG_DB_USER="ghostfolio" PG_DB_SCHEMA_PERMS="true" setup_postgresql_db
|
||||||
DB_USER=ghostfolio
|
|
||||||
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
|
||||||
REDIS_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
REDIS_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
||||||
ACCESS_TOKEN_SALT=$(openssl rand -base64 32)
|
ACCESS_TOKEN_SALT=$(openssl rand -base64 32)
|
||||||
JWT_SECRET_KEY=$(openssl rand -base64 32)
|
JWT_SECRET_KEY=$(openssl rand -base64 32)
|
||||||
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME;"
|
|
||||||
$STD sudo -u postgres psql -c "CREATE USER $DB_USER WITH ENCRYPTED PASSWORD '$DB_PASS';"
|
|
||||||
$STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME TO $DB_USER;"
|
|
||||||
$STD sudo -u postgres psql -c "ALTER USER $DB_USER CREATEDB;"
|
|
||||||
$STD sudo -u postgres psql -d $DB_NAME -c "GRANT ALL ON SCHEMA public TO $DB_USER;"
|
|
||||||
$STD sudo -u postgres psql -d $DB_NAME -c "GRANT CREATE ON SCHEMA public TO $DB_USER;"
|
|
||||||
$STD sudo -u postgres psql -d $DB_NAME -c "ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO $DB_USER;"
|
|
||||||
$STD sudo -u postgres psql -d $DB_NAME -c "ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON SEQUENCES TO $DB_USER;"
|
|
||||||
{
|
{
|
||||||
echo "Ghostfolio Credentials"
|
echo "Ghostfolio Credentials"
|
||||||
echo "Database User: $DB_USER"
|
|
||||||
echo "Database Password: $DB_PASS"
|
|
||||||
echo "Database Name: $DB_NAME"
|
|
||||||
echo "Redis Password: $REDIS_PASS"
|
echo "Redis Password: $REDIS_PASS"
|
||||||
echo "Access Token Salt: $ACCESS_TOKEN_SALT"
|
echo "Access Token Salt: $ACCESS_TOKEN_SALT"
|
||||||
echo "JWT Secret Key: $JWT_SECRET_KEY"
|
echo "JWT Secret Key: $JWT_SECRET_KEY"
|
||||||
@@ -69,7 +56,7 @@ read -rp "${TAB3}CoinGecko Pro API key (press Enter to skip): " COINGECKO_PRO_KE
|
|||||||
|
|
||||||
msg_info "Setting up Environment"
|
msg_info "Setting up Environment"
|
||||||
cat <<EOF >/opt/ghostfolio/.env
|
cat <<EOF >/opt/ghostfolio/.env
|
||||||
DATABASE_URL=postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME?connect_timeout=300&sslmode=prefer
|
DATABASE_URL=postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME?connect_timeout=300
|
||||||
REDIS_HOST=localhost
|
REDIS_HOST=localhost
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
REDIS_PASSWORD=$REDIS_PASS
|
REDIS_PASSWORD=$REDIS_PASS
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ msg_ok "Installed Dependencies"
|
|||||||
fetch_and_deploy_gh_release "pandoc" "jgm/pandoc" "binary" "latest" "" "pandoc-*-amd64.deb"
|
fetch_and_deploy_gh_release "pandoc" "jgm/pandoc" "binary" "latest" "" "pandoc-*-amd64.deb"
|
||||||
fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-x86_64.txz"
|
fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-x86_64.txz"
|
||||||
ln -sf /opt/calibre/ebook-convert /usr/bin/ebook-convert
|
ln -sf /opt/calibre/ebook-convert /usr/bin/ebook-convert
|
||||||
|
ln -sf /usr/local/bin/ffmpeg /usr/bin/ffmpeg
|
||||||
fetch_and_deploy_gh_release "drawio" "jgraph/drawio-desktop" "binary" "latest" "" "drawio-amd64-*.deb"
|
fetch_and_deploy_gh_release "drawio" "jgraph/drawio-desktop" "binary" "latest" "" "drawio-amd64-*.deb"
|
||||||
fetch_and_deploy_gh_release "transmute" "transmute-app/transmute" "tarball"
|
fetch_and_deploy_gh_release "transmute" "transmute-app/transmute" "tarball"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,79 @@
|
|||||||
|
#!/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/mauriceboe/TREK
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y build-essential
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
fetch_and_deploy_gh_release "trek" "mauriceboe/TREK" "tarball"
|
||||||
|
|
||||||
|
msg_info "Building Client"
|
||||||
|
cd /opt/trek/client
|
||||||
|
$STD npm ci
|
||||||
|
$STD npm run build
|
||||||
|
msg_ok "Built Client"
|
||||||
|
|
||||||
|
msg_info "Setting up Server"
|
||||||
|
cd /opt/trek/server
|
||||||
|
$STD npm ci
|
||||||
|
mkdir -p /opt/trek/server/public
|
||||||
|
cp -r /opt/trek/client/dist/* /opt/trek/server/public/
|
||||||
|
cp -r /opt/trek/client/public/fonts /opt/trek/server/public/fonts 2>/dev/null || true
|
||||||
|
mkdir -p /opt/trek/{data/logs,uploads/{files,covers,avatars,photos}}
|
||||||
|
rm -rf /opt/trek/server/data /opt/trek/server/uploads
|
||||||
|
ln -s /opt/trek/data /opt/trek/server/data
|
||||||
|
ln -s /opt/trek/uploads /opt/trek/server/uploads
|
||||||
|
ENCRYPTION_KEY=$(openssl rand -hex 32)
|
||||||
|
ADMIN_EMAIL="admin@trek.local"
|
||||||
|
ADMIN_PASSWORD=$(openssl rand -base64 18 | tr -dc 'A-Za-z0-9' | head -c 16)
|
||||||
|
cat <<EOF >/opt/trek/server/.env
|
||||||
|
NODE_ENV=production
|
||||||
|
PORT=3000
|
||||||
|
ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
||||||
|
ADMIN_EMAIL=${ADMIN_EMAIL}
|
||||||
|
ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
COOKIE_SECURE=false
|
||||||
|
FORCE_HTTPS=false
|
||||||
|
LOG_LEVEL=info
|
||||||
|
TZ=UTC
|
||||||
|
EOF
|
||||||
|
chmod 600 /opt/trek/server/.env
|
||||||
|
msg_ok "Set up Server"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/trek.service
|
||||||
|
[Unit]
|
||||||
|
Description=TREK Travel Planner
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/trek/server
|
||||||
|
EnvironmentFile=/opt/trek/server/.env
|
||||||
|
ExecStart=/usr/bin/node --import tsx src/index.ts
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now trek
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
+6
-1
@@ -4011,9 +4011,14 @@ function setup_ffmpeg() {
|
|||||||
DEPS+=(
|
DEPS+=(
|
||||||
libx264-dev libx265-dev libvpx-dev libmp3lame-dev
|
libx264-dev libx265-dev libvpx-dev libmp3lame-dev
|
||||||
libfreetype6-dev libass-dev libopus-dev libvorbis-dev
|
libfreetype6-dev libass-dev libopus-dev libvorbis-dev
|
||||||
libdav1d-dev libsvtav1-dev zlib1g-dev libnuma-dev
|
libdav1d-dev zlib1g-dev libnuma-dev
|
||||||
libva-dev libdrm-dev
|
libva-dev libdrm-dev
|
||||||
)
|
)
|
||||||
|
if apt-cache show libsvtav1enc-dev &>/dev/null; then
|
||||||
|
DEPS+=(libsvtav1enc-dev)
|
||||||
|
elif apt-cache show libsvtav1-dev &>/dev/null; then
|
||||||
|
DEPS+=(libsvtav1-dev)
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
msg_error "Invalid FFMPEG_TYPE: $TYPE"
|
msg_error "Invalid FFMPEG_TYPE: $TYPE"
|
||||||
|
|||||||
@@ -65,6 +65,14 @@ component_exists_in_sources() {
|
|||||||
grep -h -E "^[^#]*Components:[^#]*\b${component}\b" /etc/apt/sources.list.d/*.sources 2>/dev/null | grep -q .
|
grep -h -E "^[^#]*Components:[^#]*\b${component}\b" /etc/apt/sources.list.d/*.sources 2>/dev/null | grep -q .
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require_whiptail() {
|
||||||
|
if ! command -v whiptail >/dev/null 2>&1; then
|
||||||
|
msg_error "Missing dependency: whiptail"
|
||||||
|
echo -e "Install it first (e.g. apt update && apt install -y whiptail), then re-run this script."
|
||||||
|
exit 127
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# ---- main ----
|
# ---- main ----
|
||||||
main() {
|
main() {
|
||||||
header_info
|
header_info
|
||||||
@@ -90,8 +98,14 @@ main() {
|
|||||||
CODENAME="$(get_pbs_codename)"
|
CODENAME="$(get_pbs_codename)"
|
||||||
|
|
||||||
case "$CODENAME" in
|
case "$CODENAME" in
|
||||||
bookworm) start_routines_3 ;;
|
bookworm)
|
||||||
trixie) start_routines_4 ;;
|
require_whiptail
|
||||||
|
start_routines_3
|
||||||
|
;;
|
||||||
|
trixie)
|
||||||
|
require_whiptail
|
||||||
|
start_routines_4
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
msg_error "Unsupported Debian codename: $CODENAME"
|
msg_error "Unsupported Debian codename: $CODENAME"
|
||||||
echo -e "Supported: bookworm (PBS 3.x) and trixie (PBS 4.x)"
|
echo -e "Supported: bookworm (PBS 3.x) and trixie (PBS 4.x)"
|
||||||
|
|||||||
Reference in New Issue
Block a user