mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-06 19:32:49 +00:00
Compare commits
46 Commits
2025-01-01
...
2025-01-04
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3d6ec8b20 | ||
|
|
314f932764 | ||
|
|
e191b94151 | ||
|
|
9cc4bda762 | ||
|
|
32572c6072 | ||
|
|
a1fe451fe2 | ||
|
|
ba97af3b9f | ||
|
|
859f3dffc3 | ||
|
|
84b15641fb | ||
|
|
a99bdb9e97 | ||
|
|
6035469047 | ||
|
|
982a19cf28 | ||
|
|
e3299a67ec | ||
|
|
6f557aa394 | ||
|
|
38f4a98e4f | ||
|
|
5967a7f496 | ||
|
|
67cdc35d02 | ||
|
|
71c04d9e12 | ||
|
|
eee58b43db | ||
|
|
8a35df4f59 | ||
|
|
9fd4a13a8a | ||
|
|
9f2ae06726 | ||
|
|
a5adf44f39 | ||
|
|
536de5d083 | ||
|
|
dfa14693ee | ||
|
|
b03e223e91 | ||
|
|
036728df0d | ||
|
|
682087c6ec | ||
|
|
5338a6762a | ||
|
|
3a52f8dbfb | ||
|
|
8fd34ea277 | ||
|
|
593669b960 | ||
|
|
e165153dcb | ||
|
|
ff8b060cad | ||
|
|
6f51b0f5a2 | ||
|
|
487f36fec6 | ||
|
|
385b36d29e | ||
|
|
3b8ff01385 | ||
|
|
11de586c93 | ||
|
|
eacaca938d | ||
|
|
dc0cf2cb3b | ||
|
|
585f9a2404 | ||
|
|
c72eb13e74 | ||
|
|
e356259785 | ||
|
|
618445ec08 | ||
|
|
3e5274a951 |
92
.github/workflows/check-lowercase.yml
vendored
Normal file
92
.github/workflows/check-lowercase.yml
vendored
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
name: Check Lowercase Filenames
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'ct/*.sh'
|
||||||
|
- 'install/*.sh'
|
||||||
|
- 'json/*.json'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check_lowercase:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Step 1: Checkout the code
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Ensure the full history is fetched for accurate diffing
|
||||||
|
|
||||||
|
# Step 2: Fetch the base branch
|
||||||
|
- name: Fetch base branch
|
||||||
|
run: git fetch origin ${{ github.base_ref }}
|
||||||
|
|
||||||
|
# Step 3a: Validate filenames in ct directory
|
||||||
|
- name: "Validate filenames in ct directory"
|
||||||
|
run: |
|
||||||
|
changed_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E '^ct/.*\.sh$')
|
||||||
|
|
||||||
|
ERROR_COUNT=0
|
||||||
|
|
||||||
|
for FILE in $changed_files; do
|
||||||
|
BASENAME=$(basename "$FILE")
|
||||||
|
if [[ "$BASENAME" =~ ^[a-z0-9._-]+$ ]]; then
|
||||||
|
echo "$FILE: Check for lowercase in filename passed."
|
||||||
|
else
|
||||||
|
echo "Error in $FILE. Change filename to lowercase."
|
||||||
|
ERROR_COUNT=$((ERROR_COUNT + 1))
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$ERROR_COUNT" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "All filenames in ct directory passed the lowercase check."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Step 3b: Validate filenames in install directory
|
||||||
|
- name: "Validate filenames in install directory"
|
||||||
|
run: |
|
||||||
|
changed_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E '^install/.*\.sh$')
|
||||||
|
|
||||||
|
ERROR_COUNT=0
|
||||||
|
|
||||||
|
for FILE in $changed_files; do
|
||||||
|
BASENAME=$(basename "$FILE")
|
||||||
|
if [[ "$BASENAME" =~ ^[a-z0-9._-]+$ ]]; then
|
||||||
|
echo "$FILE: Check for lowercase in filename passed."
|
||||||
|
else
|
||||||
|
echo "Error in $FILE. Change filename to lowercase."
|
||||||
|
ERROR_COUNT=$((ERROR_COUNT + 1))
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$ERROR_COUNT" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "All filenames in install directory passed the lowercase check."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Step 3c: Validate filenames in json directory
|
||||||
|
- name: "Validate filenames in json directory."
|
||||||
|
run: |
|
||||||
|
changed_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E '^json/.*\.json$')
|
||||||
|
|
||||||
|
ERROR_COUNT=0
|
||||||
|
|
||||||
|
for FILE in $changed_files; do
|
||||||
|
BASENAME=$(basename "$FILE")
|
||||||
|
if [[ "$BASENAME" =~ ^[a-z0-9._-]+$ ]]; then
|
||||||
|
echo "$FILE: Check for lowercase in filename passed."
|
||||||
|
else
|
||||||
|
echo "Error in $FILE. Change filename to lowercase."
|
||||||
|
ERROR_COUNT=$((ERROR_COUNT + 1))
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$ERROR_COUNT" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "All filenames in json directory passed the lowercase check."
|
||||||
|
fi
|
||||||
55
.github/workflows/check-metadata.yml
vendored
Normal file
55
.github/workflows/check-metadata.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
name: Check Metadata
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '/ct/*.sh'
|
||||||
|
- '/install/*.sh'
|
||||||
|
jobs:
|
||||||
|
check-metadata:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Check Metadata Lines in Scripts
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
ERROR_COUNT=0
|
||||||
|
FILES=$(find . -name "*.sh")
|
||||||
|
|
||||||
|
for FILE in $FILES; do
|
||||||
|
if [[ "$(sed -n '3p' "$FILE")" == "# Copyright (c) 2021-2024 community-scripts ORG" ]]; then
|
||||||
|
echo "Check for Copyright metadata passed for line 3 in: $FILE"
|
||||||
|
else
|
||||||
|
echo "Error in $FILE: Copyright metadata missing or not on line 3"
|
||||||
|
ERROR_COUNT=$((ERROR_COUNT + 1))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if sed -n '4p' "$FILE" | grep -qE "^# Author: .+"; then
|
||||||
|
echo "Check for Author metadata passed for line 4 in: $FILE"
|
||||||
|
else
|
||||||
|
echo "Error in $FILE: Author metadata missing or invalid on line 4"
|
||||||
|
ERROR_COUNT=$((ERROR_COUNT + 1))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$(sed -n '5p' "$FILE")" == "# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE" ]]; then
|
||||||
|
echo "Check for License metadata passed for line 5 in: $FILE"
|
||||||
|
else
|
||||||
|
echo "Error in $FILE: License metadata missing or not on line 5"
|
||||||
|
ERROR_COUNT=$((ERROR_COUNT + 1))
|
||||||
|
fi
|
||||||
|
|
||||||
|
if sed -n '6p' "$FILE" | grep -qE "^# Source: .+"; then
|
||||||
|
echo "Check for Source metadata passed for line 6 in: $FILE"
|
||||||
|
else
|
||||||
|
echo "Error in $FILE: Source metadata missing or invalid on line 6"
|
||||||
|
ERROR_COUNT=$((ERROR_COUNT + 1))
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ "$ERROR_COUNT" -gt 0 ]]; then
|
||||||
|
echo "$ERROR_COUNT script(s) failed validation."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "All scripts passed."
|
||||||
|
fi
|
||||||
54
CHANGELOG.md
54
CHANGELOG.md
@@ -16,6 +16,60 @@ All LXC instances created using this repository come pre-installed with Midnight
|
|||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
Do not break established syntax in this file, as it is automatically updated by a Github Workflow
|
Do not break established syntax in this file, as it is automatically updated by a Github Workflow
|
||||||
|
|
||||||
|
## 2025-01-04
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- Fix gpg key pf2tools & 5etools [@MickLesk](https://github.com/MickLesk) ([#1242](https://github.com/community-scripts/ProxmoxVE/pull/1242))
|
||||||
|
- Homarr: Fix missing curl dependency [@MickLesk](https://github.com/MickLesk) ([#1238](https://github.com/community-scripts/ProxmoxVE/pull/1238))
|
||||||
|
- Homeassistan Core: Fix Python3 and add missing dependencies [@MickLesk](https://github.com/MickLesk) ([#1236](https://github.com/community-scripts/ProxmoxVE/pull/1236))
|
||||||
|
- Fix: Update Python for HomeAssistant [@MickLesk](https://github.com/MickLesk) ([#1227](https://github.com/community-scripts/ProxmoxVE/pull/1227))
|
||||||
|
- OneDev: Add git-lfs [@MickLesk](https://github.com/MickLesk) ([#1225](https://github.com/community-scripts/ProxmoxVE/pull/1225))
|
||||||
|
- Pf2eTools & 5eTools: Fixing npm build [@TheRealVira](https://github.com/TheRealVira) ([#1213](https://github.com/community-scripts/ProxmoxVE/pull/1213))
|
||||||
|
|
||||||
|
### 🌐 Website
|
||||||
|
|
||||||
|
- Bump next from 15.0.2 to 15.1.3 in /frontend [@dependabot[bot]](https://github.com/dependabot[bot]) ([#1212](https://github.com/community-scripts/ProxmoxVE/pull/1212))
|
||||||
|
|
||||||
|
### 🧰 Maintenance
|
||||||
|
|
||||||
|
- [GitHub Action] Add filename case check [@quantumryuu](https://github.com/quantumryuu) ([#1228](https://github.com/community-scripts/ProxmoxVE/pull/1228))
|
||||||
|
|
||||||
|
## 2025-01-03
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- Improve Homarr Installation [@MickLesk](https://github.com/MickLesk) ([#1208](https://github.com/community-scripts/ProxmoxVE/pull/1208))
|
||||||
|
- Fix: Zabbix-Update Script [@MickLesk](https://github.com/MickLesk) ([#1205](https://github.com/community-scripts/ProxmoxVE/pull/1205))
|
||||||
|
- Update Script: Lazylibrarian [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#1190](https://github.com/community-scripts/ProxmoxVE/pull/1190))
|
||||||
|
- Fix: Memos update function [@MickLesk](https://github.com/MickLesk) ([#1207](https://github.com/community-scripts/ProxmoxVE/pull/1207))
|
||||||
|
- Keep Lubelogger data after update to a new version [@JcMinarro](https://github.com/JcMinarro) ([#1200](https://github.com/community-scripts/ProxmoxVE/pull/1200))
|
||||||
|
|
||||||
|
### 🌐 Website
|
||||||
|
|
||||||
|
- Update Nextcloud-LXC JSON [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#1191](https://github.com/community-scripts/ProxmoxVE/pull/1191))
|
||||||
|
|
||||||
|
### 🧰 Maintenance
|
||||||
|
|
||||||
|
- Github action to check metadata lines in scripts. [@quantumryuu](https://github.com/quantumryuu) ([#1110](https://github.com/community-scripts/ProxmoxVE/pull/1110))
|
||||||
|
|
||||||
|
## 2025-01-02
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
### ✨ New Scripts
|
||||||
|
|
||||||
|
- New Script: Pf2eTools [@TheRealVira](https://github.com/TheRealVira) ([#1162](https://github.com/community-scripts/ProxmoxVE/pull/1162))
|
||||||
|
- New Script: 5etools [@TheRealVira](https://github.com/TheRealVira) ([#1157](https://github.com/community-scripts/ProxmoxVE/pull/1157))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- Update config template in blocky-install.sh [@xFichtl1](https://github.com/xFichtl1) ([#1059](https://github.com/community-scripts/ProxmoxVE/pull/1059))
|
||||||
|
|
||||||
## 2025-01-01
|
## 2025-01-01
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
115
ct/5etools.sh
Normal file
115
ct/5etools.sh
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: TheRealVira
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://5e.tools/
|
||||||
|
|
||||||
|
# App Default Values
|
||||||
|
APP="5etools"
|
||||||
|
var_tags="wiki"
|
||||||
|
var_cpu="1"
|
||||||
|
var_ram="512"
|
||||||
|
var_disk="13"
|
||||||
|
var_os="debian"
|
||||||
|
var_version="12"
|
||||||
|
var_unprivileged="1"
|
||||||
|
|
||||||
|
# App Output & Base Settings
|
||||||
|
header_info "$APP"
|
||||||
|
base_settings
|
||||||
|
|
||||||
|
# Core
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
|
||||||
|
# Check if installation is present | -f for file, -d for folder
|
||||||
|
if [[ ! -d "/opt/${APP}" ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f "/opt/${APP}_version.txt" ]]; then
|
||||||
|
# Crawling the new version and checking whether an update is required
|
||||||
|
msg_info "Updating System"
|
||||||
|
apt-get update &>/dev/null
|
||||||
|
apt-get -y upgrade &>/dev/null
|
||||||
|
msg_ok "Updated System"
|
||||||
|
|
||||||
|
# Execute Update
|
||||||
|
msg_info "Updating base 5etools"
|
||||||
|
cd /opt
|
||||||
|
wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip"
|
||||||
|
unzip -q "${RELEASE}.zip"
|
||||||
|
mv "/opt/${APP}/img" "/opt/img-backup"
|
||||||
|
rm -rf "/opt/${APP}"
|
||||||
|
mv "${APP}-src-${RELEASE:1}" "/opt/${APP}"
|
||||||
|
mv "/opt/img-backup" "/opt/${APP}/img"
|
||||||
|
cd /opt/5etools
|
||||||
|
$STD npm install
|
||||||
|
$STD npm run build
|
||||||
|
cd ~
|
||||||
|
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
||||||
|
msg_ok "Updated base 5etools"
|
||||||
|
|
||||||
|
chown -R www-data: "/opt/${APP}"
|
||||||
|
chmod -R 755 "/opt/${APP}"
|
||||||
|
|
||||||
|
# Cleaning up
|
||||||
|
msg_info "Cleaning Up"
|
||||||
|
rm "${RELEASE}.zip"
|
||||||
|
$STD apt-get -y autoremove
|
||||||
|
$STD apt-get -y autoclean
|
||||||
|
msg_ok "Cleanup Completed"
|
||||||
|
else
|
||||||
|
msg_ok "No update required. Base ${APP} is already at ${RELEASE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
IMG_RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-2/5etools-img/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
if [[ "${IMG_RELEASE}" != "$(cat /opt/${APP}_IMG_version.txt)" ]] || [[ ! -f "/opt/${APP}_IMG_version.txt" ]]; then
|
||||||
|
# Crawling the new version and checking whether an update is required
|
||||||
|
msg_info "Updating System"
|
||||||
|
apt-get update &>/dev/null
|
||||||
|
apt-get -y upgrade &>/dev/null
|
||||||
|
msg_ok "Updated System"
|
||||||
|
|
||||||
|
# Execute Update
|
||||||
|
msg_info "Updating 5etools images"
|
||||||
|
curl -sSL "https://github.com/5etools-mirror-2/5etools-img/archive/refs/tags/${IMG_RELEASE}.zip" > "${IMG_RELEASE}.zip"
|
||||||
|
unzip -q "${IMG_RELEASE}.zip"
|
||||||
|
rm -rf "/opt/${APP}/img"
|
||||||
|
mv "${APP}-img-${IMG_RELEASE:1}" "/opt/${APP}/img"
|
||||||
|
echo "${IMG_RELEASE}" >"/opt/${APP}_IMG_version.txt"
|
||||||
|
msg_ok "Updating 5etools images"
|
||||||
|
|
||||||
|
chown -R www-data: "/opt/${APP}"
|
||||||
|
chmod -R 755 "/opt/${APP}"
|
||||||
|
|
||||||
|
# Cleaning up
|
||||||
|
msg_info "Cleaning Up"
|
||||||
|
rm -rf /opt/${RELEASE}.zip
|
||||||
|
rm -rf ${IMG_RELEASE}.zip
|
||||||
|
$STD apt-get -y autoremove
|
||||||
|
$STD apt-get -y autoclean
|
||||||
|
msg_ok "Cleanup Completed"
|
||||||
|
else
|
||||||
|
msg_ok "No update required. ${APP} images are already at ${IMG_RELEASE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
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}"
|
||||||
@@ -51,7 +51,9 @@ function update_script() {
|
|||||||
echo -e "${GN}Updating to Stable Version${CL}"
|
echo -e "${GN}Updating to Stable Version${CL}"
|
||||||
BR=""
|
BR=""
|
||||||
fi
|
fi
|
||||||
if [[ "$PY" == "python3.11" ]]; then echo -e "⚠️ Home Assistant will soon require Python 3.12."; fi
|
if [[ "$PY" =~ ^python3\.(11|12)\.[0-9]+$ ]]; then
|
||||||
|
echo -e "⚠️ Home Assistant will soon require Python 3.13.x";
|
||||||
|
fi
|
||||||
|
|
||||||
msg_info "Stopping Home Assistant"
|
msg_info "Stopping Home Assistant"
|
||||||
systemctl stop homeassistant
|
systemctl stop homeassistant
|
||||||
|
|||||||
@@ -42,11 +42,19 @@ function update_script() {
|
|||||||
msg_info "Updating ${APP} to v${RELEASE}"
|
msg_info "Updating ${APP} to v${RELEASE}"
|
||||||
cd /opt
|
cd /opt
|
||||||
wget -q https://github.com/hargata/lubelog/releases/download/v${RELEASE}/LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip
|
wget -q https://github.com/hargata/lubelog/releases/download/v${RELEASE}/LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip
|
||||||
cp /opt/lubelogger/appsettings.json /opt/appsettings.json
|
mkdir -p /tmp/lubeloggerData/wwwroot
|
||||||
|
cp /opt/lubelogger/appsettings.json /tmp/lubeloggerData/appsettings.json
|
||||||
|
cp -r /opt/lubelogger/config /tmp/lubeloggerData/
|
||||||
|
cp -r /opt/lubelogger/data /tmp/lubeloggerData/
|
||||||
|
[[ -e /opt/lubelogger/wwwroot/translations ]] && cp -r /opt/lubelogger/wwwroot/translations /tmp/lubeloggerData/wwwroot/
|
||||||
|
[[ -e /opt/lubelogger/wwwroot/documents ]] && cp -r /opt/lubelogger/wwwroot/documents /tmp/lubeloggerData/wwwroot/
|
||||||
|
[[ -e /opt/lubelogger/wwwroot/images ]] && cp -r /opt/lubelogger/wwwroot/images /tmp/lubeloggerData/wwwroot/
|
||||||
|
[[ -e /opt/lubelogger/wwwroot/temp ]] && cp -r /opt/lubelogger/wwwroot/temp /tmp/lubeloggerData/wwwroot/
|
||||||
|
[[ -e /opt/lubelogger/log ]] && cp -r /opt/lubelogger/log /tmp/lubeloggerData/
|
||||||
rm -rf /opt/lubelogger
|
rm -rf /opt/lubelogger
|
||||||
unzip -qq LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip -d lubelogger
|
unzip -qq LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip -d lubelogger
|
||||||
chmod 700 /opt/lubelogger/CarCareTracker
|
chmod 700 /opt/lubelogger/CarCareTracker
|
||||||
mv -f /opt/appsettings.json /opt/lubelogger/appsettings.json
|
cp -rf /tmp/lubeloggerData/* /opt/lubelogger/
|
||||||
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
||||||
msg_ok "Updated ${APP} to v${RELEASE}"
|
msg_ok "Updated ${APP} to v${RELEASE}"
|
||||||
|
|
||||||
@@ -56,6 +64,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
rm -rf /opt/LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip
|
rm -rf /opt/LubeLogger_v${RELEASE_TRIMMED}_linux_x64.zip
|
||||||
|
rm -rf /tmp/lubeloggerData
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_info "Updating $APP (Patience)"
|
msg_info "Updating $APP (Patience)"
|
||||||
cd /opt/memos
|
cd /opt/memos
|
||||||
|
git reset --hard HEAD
|
||||||
output=$(git pull --no-rebase)
|
output=$(git pull --no-rebase)
|
||||||
if echo "$output" | grep -q "Already up to date."; then
|
if echo "$output" | grep -q "Already up to date."; then
|
||||||
msg_ok "$APP is already up to date."
|
msg_ok "$APP is already up to date."
|
||||||
|
|||||||
82
ct/pf2etools.sh
Normal file
82
ct/pf2etools.sh
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: TheRealVira
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://pf2etools.com/
|
||||||
|
|
||||||
|
# App Default Values
|
||||||
|
APP="Pf2eTools"
|
||||||
|
var_tags="wiki"
|
||||||
|
var_cpu="1"
|
||||||
|
var_ram="512"
|
||||||
|
var_disk="6"
|
||||||
|
var_os="debian"
|
||||||
|
var_version="12"
|
||||||
|
var_unprivileged="1"
|
||||||
|
|
||||||
|
# App Output & Base Settings
|
||||||
|
header_info "$APP"
|
||||||
|
base_settings
|
||||||
|
|
||||||
|
# Core
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
|
||||||
|
# Check if installation is present | -f for file, -d for folder
|
||||||
|
if [[ ! -d "/opt/${APP}" ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f "/opt/${APP}_version.txt" ]]; then
|
||||||
|
# Crawling the new version and checking whether an update is required
|
||||||
|
msg_info "Updating System"
|
||||||
|
apt-get update &>/dev/null
|
||||||
|
apt-get -y upgrade &>/dev/null
|
||||||
|
msg_ok "Updated System"
|
||||||
|
|
||||||
|
# Execute Update
|
||||||
|
msg_info "Updating ${APP}"
|
||||||
|
cd "/opt/${APP}"
|
||||||
|
wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
|
||||||
|
unzip -q "${RELEASE}.zip"
|
||||||
|
rm -rf "/opt/${APP}"
|
||||||
|
mv "${APP}-${RELEASE:1}" "/opt/${APP}"
|
||||||
|
cd /opt/Pf2eTools
|
||||||
|
$STD npm install
|
||||||
|
$STD npm run build
|
||||||
|
cd ~
|
||||||
|
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
||||||
|
msg_ok "Updated ${APP}"
|
||||||
|
|
||||||
|
chown -R www-data: "/opt/${APP}"
|
||||||
|
chmod -R 755 "/opt/${APP}"
|
||||||
|
|
||||||
|
# Cleaning up
|
||||||
|
msg_info "Cleaning Up"
|
||||||
|
rm -rf /opt/${APP}/${RELEASE}.zip
|
||||||
|
$STD apt-get -y autoremove
|
||||||
|
$STD apt-get -y autoclean
|
||||||
|
msg_ok "Cleanup Completed"
|
||||||
|
else
|
||||||
|
msg_ok "No update required. ${APP} is already at ${RELEASE}"
|
||||||
|
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}"
|
||||||
@@ -41,7 +41,7 @@ function update_script() {
|
|||||||
cp /etc/zabbix/zabbix_server.conf /opt/zabbix-backup/
|
cp /etc/zabbix/zabbix_server.conf /opt/zabbix-backup/
|
||||||
cp /etc/apache2/conf-enabled/zabbix.conf /opt/zabbix-backup/
|
cp /etc/apache2/conf-enabled/zabbix.conf /opt/zabbix-backup/
|
||||||
cp -R /usr/share/zabbix/ /opt/zabbix-backup/
|
cp -R /usr/share/zabbix/ /opt/zabbix-backup/
|
||||||
cp -R /usr/share/zabbix-* /opt/zabbix-backup/
|
#cp -R /usr/share/zabbix-* /opt/zabbix-backup/ Remove temporary
|
||||||
rm -Rf /etc/apt/sources.list.d/zabbix.list
|
rm -Rf /etc/apt/sources.list.d/zabbix.list
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget -q https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb
|
wget -q https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb
|
||||||
|
|||||||
107
frontend/package-lock.json
generated
107
frontend/package-lock.json
generated
@@ -31,7 +31,7 @@
|
|||||||
"fuse.js": "^7.0.0",
|
"fuse.js": "^7.0.0",
|
||||||
"lucide-react": "^0.453.0",
|
"lucide-react": "^0.453.0",
|
||||||
"mini-svg-data-uri": "^1.4.4",
|
"mini-svg-data-uri": "^1.4.4",
|
||||||
"next": "15.0.2",
|
"next": "15.1.3",
|
||||||
"next-themes": "^0.3.0",
|
"next-themes": "^0.3.0",
|
||||||
"nuqs": "^2.1.1",
|
"nuqs": "^2.1.1",
|
||||||
"pocketbase": "^0.21.4",
|
"pocketbase": "^0.21.4",
|
||||||
@@ -1556,10 +1556,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/env": {
|
"node_modules/@next/env": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/env/-/env-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/env/-/env-15.1.3.tgz",
|
||||||
"integrity": "sha512-c0Zr0ModK5OX7D4ZV8Jt/wqoXtitLNPwUfG9zElCZztdaZyNVnN40rDXVZ/+FGuR4CcNV5AEfM6N8f+Ener7Dg==",
|
"integrity": "sha512-Q1tXwQCGWyA3ehMph3VO+E6xFPHDKdHFYosadt0F78EObYxPio0S09H9UGYznDe6Wc8eLKLG89GqcFJJDiK5xw=="
|
||||||
"license": "MIT"
|
|
||||||
},
|
},
|
||||||
"node_modules/@next/eslint-plugin-next": {
|
"node_modules/@next/eslint-plugin-next": {
|
||||||
"version": "15.0.2",
|
"version": "15.0.2",
|
||||||
@@ -1602,13 +1601,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/swc-darwin-arm64": {
|
"node_modules/@next/swc-darwin-arm64": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.1.3.tgz",
|
||||||
"integrity": "sha512-GK+8w88z+AFlmt+ondytZo2xpwlfAR8U6CRwXancHImh6EdGfHMIrTSCcx5sOSBei00GyLVL0ioo1JLKTfprgg==",
|
"integrity": "sha512-aZtmIh8jU89DZahXQt1La0f2EMPt/i7W+rG1sLtYJERsP7GRnNFghsciFpQcKHcGh4dUiyTB5C1X3Dde/Gw8gg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"darwin"
|
"darwin"
|
||||||
@@ -1618,13 +1616,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/swc-darwin-x64": {
|
"node_modules/@next/swc-darwin-x64": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.1.3.tgz",
|
||||||
"integrity": "sha512-KUpBVxIbjzFiUZhiLIpJiBoelqzQtVZbdNNsehhUn36e2YzKHphnK8eTUW1s/4aPy5kH/UTid8IuVbaOpedhpw==",
|
"integrity": "sha512-aw8901rjkVBK5mbq5oV32IqkJg+CQa6aULNlN8zyCWSsePzEG3kpDkAFkkTOh3eJ0p95KbkLyWBzslQKamXsLA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"darwin"
|
"darwin"
|
||||||
@@ -1634,13 +1631,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/swc-linux-arm64-gnu": {
|
"node_modules/@next/swc-linux-arm64-gnu": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.1.3.tgz",
|
||||||
"integrity": "sha512-9J7TPEcHNAZvwxXRzOtiUvwtTD+fmuY0l7RErf8Yyc7kMpE47MIQakl+3jecmkhOoIyi/Rp+ddq7j4wG6JDskQ==",
|
"integrity": "sha512-YbdaYjyHa4fPK4GR4k2XgXV0p8vbU1SZh7vv6El4bl9N+ZSiMfbmqCuCuNU1Z4ebJMumafaz6UCC2zaJCsdzjw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
@@ -1650,13 +1646,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/swc-linux-arm64-musl": {
|
"node_modules/@next/swc-linux-arm64-musl": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.1.3.tgz",
|
||||||
"integrity": "sha512-BjH4ZSzJIoTTZRh6rG+a/Ry4SW0HlizcPorqNBixBWc3wtQtj4Sn9FnRZe22QqrPnzoaW0ctvSz4FaH4eGKMww==",
|
"integrity": "sha512-qgH/aRj2xcr4BouwKG3XdqNu33SDadqbkqB6KaZZkozar857upxKakbRllpqZgWl/NDeSCBYPmUAZPBHZpbA0w==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
@@ -1666,13 +1661,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/swc-linux-x64-gnu": {
|
"node_modules/@next/swc-linux-x64-gnu": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.1.3.tgz",
|
||||||
"integrity": "sha512-i3U2TcHgo26sIhcwX/Rshz6avM6nizrZPvrDVDY1bXcLH1ndjbO8zuC7RoHp0NSK7wjJMPYzm7NYL1ksSKFreA==",
|
"integrity": "sha512-uzafnTFwZCPN499fNVnS2xFME8WLC9y7PLRs/yqz5lz1X/ySoxfaK2Hbz74zYUdEg+iDZPd8KlsWaw9HKkLEVw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
@@ -1682,13 +1676,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/swc-linux-x64-musl": {
|
"node_modules/@next/swc-linux-x64-musl": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.1.3.tgz",
|
||||||
"integrity": "sha512-AMfZfSVOIR8fa+TXlAooByEF4OB00wqnms1sJ1v+iu8ivwvtPvnkwdzzFMpsK5jA2S9oNeeQ04egIWVb4QWmtQ==",
|
"integrity": "sha512-el6GUFi4SiDYnMTTlJJFMU+GHvw0UIFnffP1qhurrN1qJV3BqaSRUjkDUgVV44T6zpw1Lc6u+yn0puDKHs+Sbw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
@@ -1698,13 +1691,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/swc-win32-arm64-msvc": {
|
"node_modules/@next/swc-win32-arm64-msvc": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.1.3.tgz",
|
||||||
"integrity": "sha512-JkXysDT0/hEY47O+Hvs8PbZAeiCQVxKfGtr4GUpNAhlG2E0Mkjibuo8ryGD29Qb5a3IOnKYNoZlh/MyKd2Nbww==",
|
"integrity": "sha512-6RxKjvnvVMM89giYGI1qye9ODsBQpHSHVo8vqA8xGhmRPZHDQUE4jcDbhBwK0GnFMqBnu+XMg3nYukNkmLOLWw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"win32"
|
"win32"
|
||||||
@@ -1714,13 +1706,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@next/swc-win32-x64-msvc": {
|
"node_modules/@next/swc-win32-x64-msvc": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.1.3.tgz",
|
||||||
"integrity": "sha512-foaUL0NqJY/dX0Pi/UcZm5zsmSk5MtP/gxx3xOPyREkMFN+CTjctPfu3QaqrQHinaKdPnMWPJDKt4VjDfTBe/Q==",
|
"integrity": "sha512-VId/f5blObG7IodwC5Grf+aYP0O8Saz1/aeU3YcWqNdIUAmFQY3VEPKPaIzfv32F/clvanOb2K2BR5DtDs6XyQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"win32"
|
"win32"
|
||||||
@@ -3024,12 +3015,11 @@
|
|||||||
"license": "Apache-2.0"
|
"license": "Apache-2.0"
|
||||||
},
|
},
|
||||||
"node_modules/@swc/helpers": {
|
"node_modules/@swc/helpers": {
|
||||||
"version": "0.5.13",
|
"version": "0.5.15",
|
||||||
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.13.tgz",
|
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz",
|
||||||
"integrity": "sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==",
|
"integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==",
|
||||||
"license": "Apache-2.0",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.4.0"
|
"tslib": "^2.8.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@testing-library/dom": {
|
"node_modules/@testing-library/dom": {
|
||||||
@@ -7104,14 +7094,13 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/next": {
|
"node_modules/next": {
|
||||||
"version": "15.0.2",
|
"version": "15.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/next/-/next-15.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/next/-/next-15.1.3.tgz",
|
||||||
"integrity": "sha512-rxIWHcAu4gGSDmwsELXacqAPUk+j8dV/A9cDF5fsiCMpkBDYkO2AEaL1dfD+nNmDiU6QMCFN8Q30VEKapT9UHQ==",
|
"integrity": "sha512-5igmb8N8AEhWDYzogcJvtcRDU6n4cMGtBklxKD4biYv4LXN8+awc/bbQ2IM2NQHdVPgJ6XumYXfo3hBtErg1DA==",
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@next/env": "15.0.2",
|
"@next/env": "15.1.3",
|
||||||
"@swc/counter": "0.1.3",
|
"@swc/counter": "0.1.3",
|
||||||
"@swc/helpers": "0.5.13",
|
"@swc/helpers": "0.5.15",
|
||||||
"busboy": "1.6.0",
|
"busboy": "1.6.0",
|
||||||
"caniuse-lite": "^1.0.30001579",
|
"caniuse-lite": "^1.0.30001579",
|
||||||
"postcss": "8.4.31",
|
"postcss": "8.4.31",
|
||||||
@@ -7121,25 +7110,25 @@
|
|||||||
"next": "dist/bin/next"
|
"next": "dist/bin/next"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.18.0"
|
"node": "^18.18.0 || ^19.8.0 || >= 20.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@next/swc-darwin-arm64": "15.0.2",
|
"@next/swc-darwin-arm64": "15.1.3",
|
||||||
"@next/swc-darwin-x64": "15.0.2",
|
"@next/swc-darwin-x64": "15.1.3",
|
||||||
"@next/swc-linux-arm64-gnu": "15.0.2",
|
"@next/swc-linux-arm64-gnu": "15.1.3",
|
||||||
"@next/swc-linux-arm64-musl": "15.0.2",
|
"@next/swc-linux-arm64-musl": "15.1.3",
|
||||||
"@next/swc-linux-x64-gnu": "15.0.2",
|
"@next/swc-linux-x64-gnu": "15.1.3",
|
||||||
"@next/swc-linux-x64-musl": "15.0.2",
|
"@next/swc-linux-x64-musl": "15.1.3",
|
||||||
"@next/swc-win32-arm64-msvc": "15.0.2",
|
"@next/swc-win32-arm64-msvc": "15.1.3",
|
||||||
"@next/swc-win32-x64-msvc": "15.0.2",
|
"@next/swc-win32-x64-msvc": "15.1.3",
|
||||||
"sharp": "^0.33.5"
|
"sharp": "^0.33.5"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@opentelemetry/api": "^1.1.0",
|
"@opentelemetry/api": "^1.1.0",
|
||||||
"@playwright/test": "^1.41.2",
|
"@playwright/test": "^1.41.2",
|
||||||
"babel-plugin-react-compiler": "*",
|
"babel-plugin-react-compiler": "*",
|
||||||
"react": "^18.2.0 || 19.0.0-rc-02c0e824-20241028",
|
"react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
|
||||||
"react-dom": "^18.2.0 || 19.0.0-rc-02c0e824-20241028",
|
"react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",
|
||||||
"sass": "^1.3.0"
|
"sass": "^1.3.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
"fuse.js": "^7.0.0",
|
"fuse.js": "^7.0.0",
|
||||||
"lucide-react": "^0.453.0",
|
"lucide-react": "^0.453.0",
|
||||||
"mini-svg-data-uri": "^1.4.4",
|
"mini-svg-data-uri": "^1.4.4",
|
||||||
"next": "15.0.2",
|
"next": "15.1.3",
|
||||||
"next-themes": "^0.3.0",
|
"next-themes": "^0.3.0",
|
||||||
"nuqs": "^2.1.1",
|
"nuqs": "^2.1.1",
|
||||||
"pocketbase": "^0.21.4",
|
"pocketbase": "^0.21.4",
|
||||||
|
|||||||
82
install/5etools-install.sh
Normal file
82
install/5etools-install.sh
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: TheRealVira
|
||||||
|
# License: MIT
|
||||||
|
# Source: https://5e.tools/
|
||||||
|
|
||||||
|
# Import Functions und Setup
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt-get install -y \
|
||||||
|
curl \
|
||||||
|
mc \
|
||||||
|
sudo \
|
||||||
|
git \
|
||||||
|
gpg \
|
||||||
|
ca-certificates \
|
||||||
|
apache2
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
msg_info "Setting up Node.js Repository"
|
||||||
|
mkdir -p /etc/apt/keyrings
|
||||||
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
||||||
|
msg_ok "Set up Node.js Repository"
|
||||||
|
|
||||||
|
msg_info "Installing Node.js"
|
||||||
|
$STD apt-get update
|
||||||
|
$STD apt-get install -y nodejs
|
||||||
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
|
# Setup App
|
||||||
|
msg_info "Set up 5etools Base"
|
||||||
|
RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip"
|
||||||
|
unzip -q "${RELEASE}.zip"
|
||||||
|
mv "5etools-src-${RELEASE:1}" /opt/5etools
|
||||||
|
cd /opt/5etools
|
||||||
|
$STD npm install
|
||||||
|
$STD npm run build
|
||||||
|
cd ~
|
||||||
|
echo "${RELEASE}" >"/opt/5etools_version.txt"
|
||||||
|
rm "${RELEASE}.zip"
|
||||||
|
msg_ok "Set up 5etools Base"
|
||||||
|
|
||||||
|
msg_info "Set up 5etools Image"
|
||||||
|
IMG_RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-2/5etools-img/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
curl -sSL "https://github.com/5etools-mirror-2/5etools-img/archive/refs/tags/${IMG_RELEASE}.zip" > "${IMG_RELEASE}.zip"
|
||||||
|
unzip -q "${IMG_RELEASE}.zip"
|
||||||
|
mv "5etools-img-${IMG_RELEASE:1}" /opt/5etools/img
|
||||||
|
echo "${IMG_RELEASE}" >"/opt/5etools_IMG_version.txt"
|
||||||
|
rm "${IMG_RELEASE}.zip"
|
||||||
|
msg_ok "Set up 5etools Image"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >> /etc/apache2/apache2.conf
|
||||||
|
<Location /server-status>
|
||||||
|
SetHandler server-status
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</Location>
|
||||||
|
EOF
|
||||||
|
rm -rf /var/www/html
|
||||||
|
ln -s "/opt/5etools" /var/www/html
|
||||||
|
chown -R www-data: "/opt/5etools"
|
||||||
|
chmod -R 755 "/opt/5etools"
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
msg_info "Cleaning up"
|
||||||
|
$STD apt-get -y autoremove
|
||||||
|
$STD apt-get -y autoclean
|
||||||
|
msg_ok "Cleaned"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
@@ -28,241 +28,46 @@ RELEASE=$(curl -s https://api.github.com/repos/0xERR0R/blocky/releases/latest |
|
|||||||
wget -qO- https://github.com/0xERR0R/blocky/releases/download/v${RELEASE}/blocky_v${RELEASE}_Linux_x86_64.tar.gz | tar -xzf - -C /opt/blocky/
|
wget -qO- https://github.com/0xERR0R/blocky/releases/download/v${RELEASE}/blocky_v${RELEASE}_Linux_x86_64.tar.gz | tar -xzf - -C /opt/blocky/
|
||||||
|
|
||||||
cat <<EOF >/opt/blocky/config.yml
|
cat <<EOF >/opt/blocky/config.yml
|
||||||
upstream:
|
# configuration documentation: https://0xerr0r.github.io/blocky/latest/configuration/
|
||||||
# these external DNS resolvers will be used. Blocky picks 2 random resolvers from the list for each query
|
|
||||||
# format for resolver: [net:]host:[port][/path]. net could be empty (default, shortcut for tcp+udp), tcp+udp, tcp, udp, tcp-tls or https (DoH). If port is empty, default port will be used (53 for udp and tcp, 853 for tcp-tls, 443 for https (Doh))
|
|
||||||
# this configuration is mandatory, please define at least one external DNS resolver
|
|
||||||
default:
|
|
||||||
# example for tcp+udp IPv4 server (https://digitalcourage.de/)
|
|
||||||
#- 5.9.164.112
|
|
||||||
# Cloudflare
|
|
||||||
- 1.1.1.1
|
|
||||||
# example for DNS-over-TLS server (DoT)
|
|
||||||
#- tcp-tls:fdns1.dismail.de:853
|
|
||||||
# example for DNS-over-HTTPS (DoH)
|
|
||||||
#- https://dns.digitale-gesellschaft.ch/dns-query
|
|
||||||
# optional: use client name (with wildcard support: * - sequence of any characters, [0-9] - range)
|
|
||||||
# or single ip address / client subnet as CIDR notation
|
|
||||||
#laptop*:
|
|
||||||
#- 123.123.123.123
|
|
||||||
|
|
||||||
# optional: timeout to query the upstream resolver. Default: 2s
|
upstreams:
|
||||||
#upstreamTimeout: 2s
|
groups:
|
||||||
|
# these external DNS resolvers will be used. Blocky picks 2 random resolvers from the list for each query
|
||||||
|
# format for resolver: [net:]host:[port][/path]. net could be empty (default, shortcut for tcp+udp), tcp+udp, tcp, udp, tcp-tls or https (DoH). If port is empty, default port will be used (53 for udp and tcp, 853 for tcp-tls, 443 for https (Doh))
|
||||||
|
# this configuration is mandatory, please define at least one external DNS resolver
|
||||||
|
default:
|
||||||
|
# Cloudflare
|
||||||
|
- 1.1.1.1
|
||||||
|
# Quad9 DNS-over-TLS server (DoT)
|
||||||
|
- tcp-tls:dns.quad9.net
|
||||||
|
|
||||||
# optional: If true, blocky will fail to start unless at least one upstream server per group is reachable. Default: false
|
# optional: use allow/denylists to block queries (for example ads, trackers, adult pages etc.)
|
||||||
#startVerifyUpstream: true
|
|
||||||
|
|
||||||
# optional: Determines how blocky will create outgoing connections. This impacts both upstreams, and lists.
|
|
||||||
# accepted: dual, v4, v6
|
|
||||||
# default: dual
|
|
||||||
#connectIPVersion: dual
|
|
||||||
|
|
||||||
# optional: custom IP address(es) for domain name (with all sub-domains). Multiple addresses must be separated by a comma
|
|
||||||
# example: query "printer.lan" or "my.printer.lan" will return 192.168.178.3
|
|
||||||
#customDNS:
|
|
||||||
#customTTL: 1h
|
|
||||||
# optional: if true (default), return empty result for unmapped query types (for example TXT, MX or AAAA if only IPv4 address is defined).
|
|
||||||
# if false, queries with unmapped types will be forwarded to the upstream resolver
|
|
||||||
#filterUnmappedTypes: true
|
|
||||||
# optional: replace domain in the query with other domain before resolver lookup in the mapping
|
|
||||||
#rewrite:
|
|
||||||
#example.com: printer.lan
|
|
||||||
#mapping:
|
|
||||||
#printer.lan: 192.168.178.3,2001:0db8:85a3:08d3:1319:8a2e:0370:7344
|
|
||||||
|
|
||||||
# optional: definition, which DNS resolver(s) should be used for queries to the domain (with all sub-domains). Multiple resolvers must be separated by a comma
|
|
||||||
# Example: Query client.fritz.box will ask DNS server 192.168.178.1. This is necessary for local network, to resolve clients by host name
|
|
||||||
#conditional:
|
|
||||||
# optional: if false (default), return empty result if after rewrite, the mapped resolver returned an empty answer. If true, the original query will be sent to the upstream resolver
|
|
||||||
# Example: The query "blog.example.com" will be rewritten to "blog.fritz.box" and also redirected to the resolver at 192.168.178.1. If not found and if was set to , the original query "blog.example.com" will be sent upstream.
|
|
||||||
# Usage: One usecase when having split DNS for internal and external (internet facing) users, but not all subdomains are listed in the internal domain.
|
|
||||||
#fallbackUpstream: false
|
|
||||||
# optional: replace domain in the query with other domain before resolver lookup in the mapping
|
|
||||||
#rewrite:
|
|
||||||
#example.com: fritz.box
|
|
||||||
#mapping:
|
|
||||||
#fritz.box: 192.168.178.1
|
|
||||||
#lan.net: 192.168.178.1,192.168.178.2
|
|
||||||
|
|
||||||
# optional: use black and white lists to block queries (for example ads, trackers, adult pages etc.)
|
|
||||||
blocking:
|
blocking:
|
||||||
# definition of blacklist groups. Can be external link (http/https) or local file
|
# definition of denylist groups. Can be external link (http/https) or local file
|
||||||
blackLists:
|
denylists:
|
||||||
ads:
|
ads:
|
||||||
- https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
|
|
||||||
- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
|
- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
|
||||||
- http://sysctl.org/cameleon/hosts
|
|
||||||
- https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
|
|
||||||
- |
|
|
||||||
# inline definition with YAML literal block scalar style
|
|
||||||
# hosts format
|
|
||||||
someadsdomain.com
|
|
||||||
special:
|
|
||||||
- https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts
|
|
||||||
# definition of whitelist groups. Attention: if the same group has black and whitelists, whitelists will be used to disable particular blacklist entries. If a group has only whitelist entries -> this means only domains from this list are allowed, all other domains will be blocked
|
|
||||||
whiteLists:
|
|
||||||
ads:
|
|
||||||
- whitelist.txt
|
|
||||||
- |
|
|
||||||
# inline definition with YAML literal block scalar style
|
|
||||||
# hosts format
|
|
||||||
whitelistdomain.com
|
|
||||||
# this is a regex
|
|
||||||
/^banners?[_.-]/
|
|
||||||
# definition: which groups should be applied for which client
|
# definition: which groups should be applied for which client
|
||||||
clientGroupsBlock:
|
clientGroupsBlock:
|
||||||
# default will be used, if no special definition for a client name exists
|
# default will be used, if no special definition for a client name exists
|
||||||
default:
|
default:
|
||||||
- ads
|
- ads
|
||||||
- special
|
|
||||||
# use client name (with wildcard support: * - sequence of any characters, [0-9] - range)
|
|
||||||
# or single ip address / client subnet as CIDR notation
|
|
||||||
#laptop*:
|
|
||||||
#- ads
|
|
||||||
#192.168.178.1/24:
|
|
||||||
#- special
|
|
||||||
# which response will be sent, if query is blocked:
|
|
||||||
# zeroIp: 0.0.0.0 will be returned (default)
|
|
||||||
# nxDomain: return NXDOMAIN as return code
|
|
||||||
# comma separated list of destination IP addresses (for example: 192.100.100.15, 2001:0db8:85a3:08d3:1319:8a2e:0370:7344). Should contain ipv4 and ipv6 to cover all query types. Useful with running web server on this address to display the "blocked" page.
|
|
||||||
blockType: zeroIp
|
|
||||||
# optional: TTL for answers to blocked domains
|
|
||||||
# default: 6h
|
|
||||||
blockTTL: 1m
|
|
||||||
# optional: automatically list refresh period (in duration format). Default: 4h.
|
|
||||||
# Negative value -> deactivate automatically refresh.
|
|
||||||
# 0 value -> use default
|
|
||||||
refreshPeriod: 4h
|
|
||||||
# optional: timeout for list download (each url). Default: 60s. Use large values for big lists or slow internet connections
|
|
||||||
downloadTimeout: 4m
|
|
||||||
# optional: Download attempt timeout. Default: 60s
|
|
||||||
downloadAttempts: 5
|
|
||||||
# optional: Time between the download attempts. Default: 1s
|
|
||||||
downloadCooldown: 10s
|
|
||||||
# optional: if failOnError, application startup will fail if at least one list can't be downloaded / opened. Default: blocking
|
|
||||||
#startStrategy: failOnError
|
|
||||||
|
|
||||||
# optional: configuration for caching of DNS responses
|
|
||||||
caching:
|
|
||||||
# duration how long a response must be cached (min value).
|
|
||||||
# If <=0, use response's TTL, if >0 use this value, if TTL is smaller
|
|
||||||
# Default: 0
|
|
||||||
minTime: 5m
|
|
||||||
# duration how long a response must be cached (max value).
|
|
||||||
# If <0, do not cache responses
|
|
||||||
# If 0, use TTL
|
|
||||||
# If > 0, use this value, if TTL is greater
|
|
||||||
# Default: 0
|
|
||||||
maxTime: 30m
|
|
||||||
# Max number of cache entries (responses) to be kept in cache (soft limit). Useful on systems with limited amount of RAM.
|
|
||||||
# Default (0): unlimited
|
|
||||||
maxItemsCount: 0
|
|
||||||
# if true, will preload DNS results for often used queries (default: names queried more than 5 times in a 2-hour time window)
|
|
||||||
# this improves the response time for often used queries, but significantly increases external traffic
|
|
||||||
# default: false
|
|
||||||
prefetching: true
|
|
||||||
# prefetch track time window (in duration format)
|
|
||||||
# default: 120
|
|
||||||
prefetchExpires: 2h
|
|
||||||
# name queries threshold for prefetch
|
|
||||||
# default: 5
|
|
||||||
prefetchThreshold: 5
|
|
||||||
# Max number of domains to be kept in cache for prefetching (soft limit). Useful on systems with limited amount of RAM.
|
|
||||||
# Default (0): unlimited
|
|
||||||
#prefetchMaxItemsCount: 0
|
|
||||||
|
|
||||||
# optional: configuration of client name resolution
|
|
||||||
clientLookup:
|
|
||||||
# optional: this DNS resolver will be used to perform reverse DNS lookup (typically local router)
|
|
||||||
#upstream: 192.168.178.1
|
|
||||||
# optional: some routers return multiple names for client (host name and user defined name). Define which single name should be used.
|
|
||||||
# Example: take second name if present, if not take first name
|
|
||||||
#singleNameOrder:
|
|
||||||
#- 2
|
|
||||||
#- 1
|
|
||||||
# optional: custom mapping of client name to IP addresses. Useful if reverse DNS does not work properly or just to have custom client names.
|
|
||||||
#clients:
|
|
||||||
#laptop:
|
|
||||||
#- 192.168.178.29
|
|
||||||
# optional: configuration for prometheus metrics endpoint
|
|
||||||
prometheus:
|
|
||||||
# enabled if true
|
|
||||||
#enable: true
|
|
||||||
# url path, optional (default '/metrics')
|
|
||||||
#path: /metrics
|
|
||||||
|
|
||||||
# optional: write query information (question, answer, client, duration etc.) to daily csv file
|
# optional: write query information (question, answer, client, duration etc.) to daily csv file
|
||||||
queryLog:
|
queryLog:
|
||||||
# optional one of: mysql, postgresql, csv, csv-client. If empty, log to console
|
# optional one of: mysql, postgresql, csv, csv-client. If empty, log to console
|
||||||
#type: mysql
|
type:
|
||||||
# directory (should be mounted as volume in docker) for csv, db connection string for mysql/postgresql
|
|
||||||
#target: db_user:db_password@tcp(db_host_or_ip:3306)/db_name?charset=utf8mb4&parseTime=True&loc=Local
|
|
||||||
#postgresql target: postgres://user:password@db_host_or_ip:5432/db_name
|
|
||||||
# if > 0, deletes log files which are older than ... days
|
|
||||||
#logRetentionDays: 7
|
|
||||||
# optional: Max attempts to create specific query log writer, default: 3
|
|
||||||
#creationAttempts: 1
|
|
||||||
# optional: Time between the creation attempts, default: 2s
|
|
||||||
#creationCooldown: 2s
|
|
||||||
|
|
||||||
# optional: Blocky can synchronize its cache and blocking state between multiple instances through redis.
|
# optional: use these DNS servers to resolve denylist urls and upstream DNS servers. It is useful if no system DNS resolver is configured, and/or to encrypt the bootstrap queries.
|
||||||
redis:
|
bootstrapDns:
|
||||||
# Server address and port
|
- upstream: tcp-tls:one.one.one.one
|
||||||
#address: redis:6379
|
ips:
|
||||||
# Password if necessary
|
- 1.1.1.1
|
||||||
#password: passwd
|
|
||||||
# Database, default: 0
|
|
||||||
#database: 2
|
|
||||||
# Connection is required for blocky to start. Default: false
|
|
||||||
#required: true
|
|
||||||
# Max connection attempts, default: 3
|
|
||||||
#connectionAttempts: 10
|
|
||||||
# Time between the connection attempts, default: 1s
|
|
||||||
#connectionCooldown: 3s
|
|
||||||
|
|
||||||
# optional: DNS listener port(s) and bind ip address(es), default 53 (UDP and TCP). Example: 53, :53, "127.0.0.1:5353,[::1]:5353"
|
# optional: logging configuration
|
||||||
port: 553
|
log:
|
||||||
# optional: Port(s) and bind ip address(es) for DoT (DNS-over-TLS) listener. Example: 853, 127.0.0.1:853
|
# optional: Log level (one from trace, debug, info, warn, error). Default: info
|
||||||
#tlsPort: 853
|
level: info
|
||||||
# optional: HTTPS listener port(s) and bind ip address(es), default empty = no http listener. If > 0, will be used for prometheus metrics, pprof, REST API, DoH... Example: 443, :443, 127.0.0.1:443
|
|
||||||
#httpPort: 4000
|
|
||||||
#httpsPort: 443
|
|
||||||
# optional: Mininal TLS version that the DoH and DoT server will use
|
|
||||||
#minTlsServeVersion: 1.3
|
|
||||||
# if https port > 0: path to cert and key file for SSL encryption. if not set, self-signed certificate will be generated
|
|
||||||
#certFile: server.crt
|
|
||||||
#keyFile: server.key
|
|
||||||
# optional: use this DNS server to resolve blacklist urls and upstream DNS servers. Useful if no DNS resolver is configured and blocky needs to resolve a host name. Format net:IP:port, net must be udp or tcp
|
|
||||||
#bootstrapDns: tcp+udp:1.1.1.1
|
|
||||||
|
|
||||||
filtering:
|
|
||||||
# optional: drop all queries with following query types. Default: empty
|
|
||||||
#queryTypes:
|
|
||||||
#- AAAA
|
|
||||||
|
|
||||||
# optional: if path defined, use this file for query resolution (A, AAAA and rDNS). Default: empty
|
|
||||||
hostsFile:
|
|
||||||
# optional: Path to hosts file (e.g. /etc/hosts on Linux)
|
|
||||||
#filePath: /etc/hosts
|
|
||||||
# optional: TTL, default: 1h
|
|
||||||
#hostsTTL: 60m
|
|
||||||
# optional: Time between hosts file refresh, default: 1h
|
|
||||||
#refreshPeriod: 30m
|
|
||||||
# optional: Whether loopback hosts addresses (127.0.0.0/8 and ::1) should be filtered or not, default: false
|
|
||||||
#filterLoopback: true
|
|
||||||
# optional: Log level (one from debug, info, warn, error). Default: info
|
|
||||||
#logLevel: info
|
|
||||||
# optional: Log format (text or json). Default: text
|
|
||||||
#logFormat: text
|
|
||||||
# optional: log timestamps. Default: true
|
|
||||||
#logTimestamp: true
|
|
||||||
# optional: obfuscate log output (replace all alphanumeric characters with *) for user sensitive data like request domains or responses to increase privacy. Default: false
|
|
||||||
#logPrivacy: false
|
|
||||||
|
|
||||||
# optional: add EDE error codes to dns response
|
|
||||||
#ede:
|
|
||||||
# enabled if true, Default: false
|
|
||||||
#enable: true
|
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Installed Blocky"
|
msg_ok "Installed Blocky"
|
||||||
|
|
||||||
|
|||||||
@@ -16,11 +16,15 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y sudo
|
sudo \
|
||||||
$STD apt-get install -y mc
|
mc \
|
||||||
$STD apt-get install -y ca-certificates
|
curl \
|
||||||
$STD apt-get install -y gnupg
|
ca-certificates \
|
||||||
|
gnupg \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
|
build-essential
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Node.js Repository"
|
msg_info "Setting up Node.js Repository"
|
||||||
|
|||||||
@@ -14,9 +14,49 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies (Patience)"
|
msg_info "Installing Dependencies (Patience)"
|
||||||
$STD apt-get install -y git curl sudo mc bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev ffmpeg liblapack3 liblapack-dev dbus-broker libpcap-dev libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev libmariadb-dev-compat libatlas-base-dev pip python3.12-dev
|
$STD apt-get install -y \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
sudo \
|
||||||
|
mc \
|
||||||
|
gnupg \
|
||||||
|
ca-certificates \
|
||||||
|
bluez \
|
||||||
|
libtiff6 \
|
||||||
|
tzdata \
|
||||||
|
libffi-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libjpeg-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
autoconf \
|
||||||
|
build-essential \
|
||||||
|
libopenjp2-7 \
|
||||||
|
libturbojpeg0-dev \
|
||||||
|
ffmpeg \
|
||||||
|
liblapack3 \
|
||||||
|
liblapack-dev \
|
||||||
|
dbus-broker \
|
||||||
|
libpcap-dev \
|
||||||
|
libavdevice-dev \
|
||||||
|
libavformat-dev \
|
||||||
|
libavcodec-dev \
|
||||||
|
libavutil-dev \
|
||||||
|
libavfilter-dev \
|
||||||
|
libmariadb-dev-compat \
|
||||||
|
libatlas-base-dev \
|
||||||
|
software-properties-common
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
msg_info "Setup Python3"
|
||||||
|
$STD add-apt-repository -y ppa:deadsnakes/ppa
|
||||||
|
$STD apt-get update
|
||||||
|
$STD apt-get install -y \
|
||||||
|
python3.13-* \
|
||||||
|
python3-pip \
|
||||||
|
python3.13-dev \
|
||||||
|
python3.13-venv
|
||||||
|
msg_ok "Setup Python3"
|
||||||
|
|
||||||
msg_info "Installing UV"
|
msg_info "Installing UV"
|
||||||
$STD pip install uv
|
$STD pip install uv
|
||||||
msg_ok "Installed UV"
|
msg_ok "Installed UV"
|
||||||
|
|||||||
@@ -15,15 +15,21 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y sudo
|
curl \
|
||||||
$STD apt-get install -y mc
|
sudo \
|
||||||
$STD apt-get install -y git
|
mc \
|
||||||
|
git \
|
||||||
|
libpng-dev \
|
||||||
|
libjpeg-dev \
|
||||||
|
libtiff-dev \
|
||||||
|
imagemagick
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Python3 Dependencies"
|
msg_info "Installing Python3 Dependencies"
|
||||||
$STD apt-get install -y pip
|
$STD apt-get install -y \
|
||||||
$STD apt-get install -y python3-irc
|
pip \
|
||||||
|
python3-irc
|
||||||
$STD pip install jaraco.stream
|
$STD pip install jaraco.stream
|
||||||
$STD pip install python-Levenshtein
|
$STD pip install python-Levenshtein
|
||||||
$STD pip install soupsieve
|
$STD pip install soupsieve
|
||||||
@@ -31,6 +37,8 @@ msg_ok "Installed Python3 Dependencies"
|
|||||||
|
|
||||||
msg_info "Installing LazyLibrarian"
|
msg_info "Installing LazyLibrarian"
|
||||||
$STD git clone https://gitlab.com/LazyLibrarian/LazyLibrarian /opt/LazyLibrarian
|
$STD git clone https://gitlab.com/LazyLibrarian/LazyLibrarian /opt/LazyLibrarian
|
||||||
|
cd /opt/LazyLibrarian
|
||||||
|
$STD pip install .
|
||||||
msg_ok "Installed LazyLibrarian"
|
msg_ok "Installed LazyLibrarian"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ $STD apt-get install -y \
|
|||||||
mc \
|
mc \
|
||||||
sudo \
|
sudo \
|
||||||
default-jdk \
|
default-jdk \
|
||||||
git
|
git \
|
||||||
|
git-lfs
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
74
install/pf2etools-install.sh
Normal file
74
install/pf2etools-install.sh
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: TheRealVira
|
||||||
|
# License: MIT
|
||||||
|
# Source: https://pf2etools.com/
|
||||||
|
|
||||||
|
# Import Functions und Setup
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt-get install -y \
|
||||||
|
curl \
|
||||||
|
mc \
|
||||||
|
sudo \
|
||||||
|
apache2 \
|
||||||
|
gpg \
|
||||||
|
ca-certificates \
|
||||||
|
git
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
msg_info "Setting up Node.js Repository"
|
||||||
|
mkdir -p /etc/apt/keyrings
|
||||||
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
|
||||||
|
msg_ok "Set up Node.js Repository"
|
||||||
|
|
||||||
|
msg_info "Installing Node.js"
|
||||||
|
$STD apt-get update
|
||||||
|
$STD apt-get install -y nodejs
|
||||||
|
msg_ok "Installed Node.js"
|
||||||
|
|
||||||
|
# Setup App
|
||||||
|
msg_info "Setup Pf2eTools"
|
||||||
|
RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
|
wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
|
||||||
|
unzip -q "${RELEASE}.zip"
|
||||||
|
mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools
|
||||||
|
cd /opt/Pf2eTools
|
||||||
|
$STD npm install
|
||||||
|
$STD npm run build
|
||||||
|
cd ~
|
||||||
|
echo "${RELEASE}" >/opt/Pf2eTools_version.txt
|
||||||
|
msg_ok "Set up Pf2eTools"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >> /etc/apache2/apache2.conf
|
||||||
|
<Location /server-status>
|
||||||
|
SetHandler server-status
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</Location>
|
||||||
|
EOF
|
||||||
|
rm -rf /var/www/html
|
||||||
|
ln -s "/opt/Pf2eTools" /var/www/html
|
||||||
|
chown -R www-data: "/opt/Pf2eTools"
|
||||||
|
chmod -R 755 "/opt/Pf2eTools"
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
msg_info "Cleaning up"
|
||||||
|
rm "${RELEASE}.zip"
|
||||||
|
$STD apt-get -y autoremove
|
||||||
|
$STD apt-get -y autoclean
|
||||||
|
msg_ok "Cleaned"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
34
json/5etools.json
Normal file
34
json/5etools.json
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"name": "5etools",
|
||||||
|
"slug": "5etools",
|
||||||
|
"categories": [
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"date_created": "2025-01-02",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 80,
|
||||||
|
"documentation": "https://wiki.tercept.net/en/5eTools",
|
||||||
|
"website": "https://5e.tools/",
|
||||||
|
"logo": "https://wiki.tercept.net/core-wiki-assets/5etoolslogocircle.png",
|
||||||
|
"description": "5eTools is a website providing a suite of tools for 5th Edition Dungeons & Dragons players and Dungeon Masters.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/5etools.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 1,
|
||||||
|
"ram": 512,
|
||||||
|
"hdd": 13,
|
||||||
|
"os": "debian",
|
||||||
|
"version": "12"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": []
|
||||||
|
}
|
||||||
@@ -41,5 +41,10 @@
|
|||||||
"username": null,
|
"username": null,
|
||||||
"password": null
|
"password": null
|
||||||
},
|
},
|
||||||
"notes": []
|
"notes": [
|
||||||
|
{
|
||||||
|
"text": "Only Alpine: To get the username and password, run the script again inside the LXC shell.",
|
||||||
|
"type": "warning"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
34
json/pf2etools.json
Normal file
34
json/pf2etools.json
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"name": "Pf2eTools",
|
||||||
|
"slug": "Pf2eTools",
|
||||||
|
"categories": [
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"date_created": "2025-01-02",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 80,
|
||||||
|
"documentation": "https://github.com/Pf2eToolsOrg/Pf2eTools/wiki",
|
||||||
|
"website": "https://pf2etools.com/",
|
||||||
|
"logo": "https://raw.githubusercontent.com/Pf2eToolsOrg/Pf2eTools/refs/heads/dev/android-chrome-192x192.png",
|
||||||
|
"description": "Pf2eTools is an open-source website aiming to provide tools and information for Pathfinder 2nd Edition players and gamemasters. It's built using basic web technologies to ensure wide compatibility, and utilises client-side caching for speed, efficiency, and offline access.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/pf2etools.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 1,
|
||||||
|
"ram": 512,
|
||||||
|
"hdd": 6,
|
||||||
|
"os": "debian",
|
||||||
|
"version": "12"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": []
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user