mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-24 06:25:15 +00:00
Compare commits
21 Commits
2025-01-01
...
2025-01-03
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b03e223e91 | ||
|
|
036728df0d | ||
|
|
682087c6ec | ||
|
|
5338a6762a | ||
|
|
3a52f8dbfb | ||
|
|
8fd34ea277 | ||
|
|
593669b960 | ||
|
|
e165153dcb | ||
|
|
ff8b060cad | ||
|
|
6f51b0f5a2 | ||
|
|
487f36fec6 | ||
|
|
385b36d29e | ||
|
|
3b8ff01385 | ||
|
|
11de586c93 | ||
|
|
eacaca938d | ||
|
|
dc0cf2cb3b | ||
|
|
585f9a2404 | ||
|
|
c72eb13e74 | ||
|
|
e356259785 | ||
|
|
618445ec08 | ||
|
|
3e5274a951 |
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
|
||||||
33
CHANGELOG.md
33
CHANGELOG.md
@@ -16,6 +16,39 @@ 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-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
|
||||||
|
|||||||
109
ct/5etools.sh
Normal file
109
ct/5etools.sh
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
#!/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"
|
||||||
|
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"
|
||||||
|
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 "${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}"
|
||||||
@@ -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
|
||||||
@@ -71,4 +80,4 @@ description
|
|||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5000${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5000${CL}"
|
||||||
|
|||||||
@@ -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."
|
||||||
@@ -60,4 +61,4 @@ description
|
|||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9030${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9030${CL}"
|
||||||
|
|||||||
78
ct/pf2etools.sh
Normal file
78
ct/pf2etools.sh
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
#!/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}"
|
||||||
|
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 "${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
|
||||||
|
|||||||
65
install/5etools-install.sh
Normal file
65
install/5etools-install.sh
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
#!/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 \
|
||||||
|
apache2
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
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,14 @@ 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
|
ca-certificates \
|
||||||
$STD apt-get install -y gnupg
|
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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
57
install/pf2etools-install.sh
Normal file
57
install/pf2etools-install.sh
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
#!/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 \
|
||||||
|
git
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
# 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
|
||||||
|
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