mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-29 05:30:53 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec1ea0b539 | |||
| de356fa8b6 | |||
| 00c538dc3b | |||
| 7c4882384f | |||
| 8e4d174a65 | |||
| d7112450c7 | |||
| caf03fe274 | |||
| e731ddf61d | |||
| 86f5c48fc2 |
+1
-1
@@ -21,7 +21,7 @@ jobs:
|
|||||||
const message = `Hello, it looks like you are referencing the **old tteck repo**.
|
const message = `Hello, it looks like you are referencing the **old tteck repo**.
|
||||||
|
|
||||||
This repository is no longer used for active scripts.
|
This repository is no longer used for active scripts.
|
||||||
**Please update your bookmarks** and use: [https://helper-scripts.com](https://helper-scripts.com)
|
**Please update your bookmarks** and use: [https://community-scripts.com](https://community-scripts.com)
|
||||||
|
|
||||||
Also make sure your Bash command starts with:
|
Also make sure your Bash command starts with:
|
||||||
\`\`\`bash
|
\`\`\`bash
|
||||||
|
|||||||
@@ -426,6 +426,14 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## 2026-03-25
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- Komodo v2: migrate env vars to v2 and update source [@MickLesk](https://github.com/MickLesk) ([#13262](https://github.com/community-scripts/ProxmoxVE/pull/13262))
|
||||||
|
|
||||||
## 2026-03-24
|
## 2026-03-24
|
||||||
|
|
||||||
### 🆕 New Scripts
|
### 🆕 New Scripts
|
||||||
@@ -439,6 +447,14 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
- Turnkey: modernize turnkey.sh with shared libraries [@MickLesk](https://github.com/MickLesk) ([#13242](https://github.com/community-scripts/ProxmoxVE/pull/13242))
|
- Turnkey: modernize turnkey.sh with shared libraries [@MickLesk](https://github.com/MickLesk) ([#13242](https://github.com/community-scripts/ProxmoxVE/pull/13242))
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- chore: replace helper-scripts.com with community-scripts.com [@MickLesk](https://github.com/MickLesk) ([#13244](https://github.com/community-scripts/ProxmoxVE/pull/13244))
|
||||||
|
|
||||||
|
### 🗑️ Deleted Scripts
|
||||||
|
|
||||||
|
- Remove: Booklore [@MickLesk](https://github.com/MickLesk) ([#13265](https://github.com/community-scripts/ProxmoxVE/pull/13265))
|
||||||
|
|
||||||
## 2026-03-23
|
## 2026-03-23
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<p><em>A Community Legacy in Memory of @tteck</em></p>
|
<p><em>A Community Legacy in Memory of @tteck</em></p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="https://helper-scripts.com">
|
<a href="https://community-scripts.com">
|
||||||
<img src="https://img.shields.io/badge/🌐_Website-Visit-4c9b3f?style=for-the-badge&labelColor=2d3748" alt="Website" />
|
<img src="https://img.shields.io/badge/🌐_Website-Visit-4c9b3f?style=for-the-badge&labelColor=2d3748" alt="Website" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://discord.gg/3AnUqsXnmK">
|
<a href="https://discord.gg/3AnUqsXnmK">
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ function update_script() {
|
|||||||
read -r -p "${TAB}Migrate update function now? [y/N]: " CONFIRM
|
read -r -p "${TAB}Migrate update function now? [y/N]: " CONFIRM
|
||||||
if [[ ! "${CONFIRM,,}" =~ ^(y|yes)$ ]]; then
|
if [[ ! "${CONFIRM,,}" =~ ^(y|yes)$ ]]; then
|
||||||
msg_warn "Migration skipped. The old update will continue to work for now."
|
msg_warn "Migration skipped. The old update will continue to work for now."
|
||||||
|
msg_warn "⚠️ Komodo v2 uses :2 image tags. The :latest tag is deprecated and will not receive v2 updates."
|
||||||
|
msg_warn "Please migrate to the addon script to receive Komodo v2."
|
||||||
msg_info "Updating ${APP} (legacy)"
|
msg_info "Updating ${APP} (legacy)"
|
||||||
COMPOSE_FILE=$(find /opt/komodo -maxdepth 1 -type f -name '*.compose.yaml' ! -name 'compose.env' | head -n1)
|
COMPOSE_FILE=$(find /opt/komodo -maxdepth 1 -type f -name '*.compose.yaml' ! -name 'compose.env' | head -n1)
|
||||||
if [[ -z "$COMPOSE_FILE" ]]; then
|
if [[ -z "$COMPOSE_FILE" ]]; then
|
||||||
|
|||||||
-113
@@ -1,113 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: MickLesk (CanbiZ)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/booklore-app/BookLore
|
|
||||||
|
|
||||||
APP="BookLore"
|
|
||||||
var_tags="${var_tags:-books;library}"
|
|
||||||
var_cpu="${var_cpu:-3}"
|
|
||||||
var_ram="${var_ram:-3072}"
|
|
||||||
var_disk="${var_disk:-7}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
|
|
||||||
if [[ ! -d /opt/booklore ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "booklore" "booklore-app/BookLore"; then
|
|
||||||
JAVA_VERSION="25" setup_java
|
|
||||||
NODE_VERSION="22" setup_nodejs
|
|
||||||
setup_mariadb
|
|
||||||
setup_yq
|
|
||||||
ensure_dependencies ffmpeg
|
|
||||||
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop booklore
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
if grep -qE "^BOOKLORE_(DATA_PATH|BOOKDROP_PATH|BOOKS_PATH|PORT)=" /opt/booklore_storage/.env 2>/dev/null; then
|
|
||||||
msg_info "Migrating old environment variables"
|
|
||||||
sed -i 's/^BOOKLORE_DATA_PATH=/APP_PATH_CONFIG=/g' /opt/booklore_storage/.env
|
|
||||||
sed -i 's/^BOOKLORE_BOOKDROP_PATH=/APP_BOOKDROP_FOLDER=/g' /opt/booklore_storage/.env
|
|
||||||
sed -i '/^BOOKLORE_BOOKS_PATH=/d' /opt/booklore_storage/.env
|
|
||||||
sed -i '/^BOOKLORE_PORT=/d' /opt/booklore_storage/.env
|
|
||||||
msg_ok "Migrated old environment variables"
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Backing up old installation"
|
|
||||||
mv /opt/booklore /opt/booklore_bak
|
|
||||||
msg_ok "Backed up old installation"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "booklore" "booklore-app/BookLore" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building Frontend"
|
|
||||||
cd /opt/booklore/booklore-ui
|
|
||||||
$STD npm install --force
|
|
||||||
$STD npm run build --configuration=production
|
|
||||||
msg_ok "Built Frontend"
|
|
||||||
|
|
||||||
msg_info "Embedding Frontend into Backend"
|
|
||||||
mkdir -p /opt/booklore/booklore-api/src/main/resources/static
|
|
||||||
cp -r /opt/booklore/booklore-ui/dist/booklore/browser/* /opt/booklore/booklore-api/src/main/resources/static/
|
|
||||||
msg_ok "Embedded Frontend into Backend"
|
|
||||||
|
|
||||||
msg_info "Building Backend"
|
|
||||||
cd /opt/booklore/booklore-api
|
|
||||||
APP_VERSION=$(get_latest_github_release "booklore-app/BookLore")
|
|
||||||
yq eval ".app.version = \"${APP_VERSION}\"" -i src/main/resources/application.yaml
|
|
||||||
$STD ./gradlew clean build -x test --no-daemon
|
|
||||||
mkdir -p /opt/booklore/dist
|
|
||||||
JAR_PATH=$(find /opt/booklore/booklore-api/build/libs -maxdepth 1 -type f -name "booklore-api-*.jar" ! -name "*plain*" | head -n1)
|
|
||||||
if [[ -z "$JAR_PATH" ]]; then
|
|
||||||
msg_error "Backend JAR not found"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
cp "$JAR_PATH" /opt/booklore/dist/app.jar
|
|
||||||
msg_ok "Built Backend"
|
|
||||||
|
|
||||||
if systemctl is-active --quiet nginx 2>/dev/null; then
|
|
||||||
msg_info "Removing Nginx (no longer needed)"
|
|
||||||
systemctl disable --now nginx
|
|
||||||
$STD apt-get purge -y nginx nginx-common
|
|
||||||
msg_ok "Removed Nginx"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! grep -q "^SERVER_PORT=" /opt/booklore_storage/.env 2>/dev/null; then
|
|
||||||
echo "SERVER_PORT=6060" >>/opt/booklore_storage/.env
|
|
||||||
fi
|
|
||||||
|
|
||||||
sed -i 's|ExecStart=.*|ExecStart=/usr/bin/java -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=75.0 -XX:+ExitOnOutOfMemoryError -jar /opt/booklore/dist/app.jar|' /etc/systemd/system/booklore.service
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start booklore
|
|
||||||
rm -rf /opt/booklore_bak
|
|
||||||
msg_ok "Started Service"
|
|
||||||
msg_ok "Updated successfully!"
|
|
||||||
fi
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6060${CL}"
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
____ __ __
|
|
||||||
/ __ )____ ____ / /__/ / ____ ________
|
|
||||||
/ __ / __ \/ __ \/ //_/ / / __ \/ ___/ _ \
|
|
||||||
/ /_/ / /_/ / /_/ / ,< / /___/ /_/ / / / __/
|
|
||||||
/_____/\____/\____/_/|_/_____/\____/_/ \___/
|
|
||||||
|
|
||||||
+2
-2
@@ -73,7 +73,7 @@ function update_script() {
|
|||||||
$STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin
|
$STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin
|
||||||
$STD filebrowser config init -a '0.0.0.0'
|
$STD filebrowser config init -a '0.0.0.0'
|
||||||
$STD filebrowser config set -a '0.0.0.0'
|
$STD filebrowser config set -a '0.0.0.0'
|
||||||
$STD filebrowser users add admin helper-scripts.com --perm.admin
|
$STD filebrowser users add admin community-scripts.com --perm.admin
|
||||||
msg_ok "Installed FileBrowser"
|
msg_ok "Installed FileBrowser"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@@ -93,7 +93,7 @@ WantedBy=default.target" >$service_path
|
|||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
echo -e "FileBrowser should be reachable by going to the following URL.
|
echo -e "FileBrowser should be reachable by going to the following URL.
|
||||||
${BL}http://$LOCAL_IP:8080${CL} admin|helper-scripts.com\n"
|
${BL}http://$LOCAL_IP:8080${CL} admin|community-scripts.com\n"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ function update_script() {
|
|||||||
read -r -p "${TAB}Migrate update function now? [y/N]: " CONFIRM
|
read -r -p "${TAB}Migrate update function now? [y/N]: " CONFIRM
|
||||||
if [[ ! "${CONFIRM,,}" =~ ^(y|yes)$ ]]; then
|
if [[ ! "${CONFIRM,,}" =~ ^(y|yes)$ ]]; then
|
||||||
msg_warn "Migration skipped. The old update will continue to work for now."
|
msg_warn "Migration skipped. The old update will continue to work for now."
|
||||||
|
msg_warn "⚠️ Komodo v2 uses :2 image tags. The :latest tag is deprecated and will not receive v2 updates."
|
||||||
|
msg_warn "Please migrate to the addon script to receive Komodo v2."
|
||||||
msg_info "Updating ${APP} (legacy)"
|
msg_info "Updating ${APP} (legacy)"
|
||||||
COMPOSE_FILE=$(find /opt/komodo -maxdepth 1 -type f -name '*.compose.yaml' ! -name 'compose.env' | head -n1)
|
COMPOSE_FILE=$(find /opt/komodo -maxdepth 1 -type f -name '*.compose.yaml' ! -name 'compose.env' | head -n1)
|
||||||
if [[ -z "$COMPOSE_FILE" ]]; then
|
if [[ -z "$COMPOSE_FILE" ]]; then
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ function update_script() {
|
|||||||
$STD curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
|
$STD curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
|
||||||
$STD filebrowser config init -a '0.0.0.0'
|
$STD filebrowser config init -a '0.0.0.0'
|
||||||
$STD filebrowser config set -a '0.0.0.0'
|
$STD filebrowser config set -a '0.0.0.0'
|
||||||
$STD filebrowser users add admin helper-scripts.com --perm.admin
|
$STD filebrowser users add admin community-scripts.com --perm.admin
|
||||||
msg_ok "Installed FileBrowser"
|
msg_ok "Installed FileBrowser"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@@ -90,7 +90,7 @@ EOF
|
|||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
echo -e "FileBrowser should be reachable by going to the following URL.
|
echo -e "FileBrowser should be reachable by going to the following URL.
|
||||||
${BL}http://$LOCAL_IP:8080${CL} admin|helper-scripts.com\n"
|
${BL}http://$LOCAL_IP:8080${CL} admin|community-scripts.com\n"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if [ "$UPD" == "4" ]; then
|
if [ "$UPD" == "4" ]; then
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ function update_script() {
|
|||||||
/opt/semaphore/config.json
|
/opt/semaphore/config.json
|
||||||
SEM_PW=$(cat ~/semaphore.creds)
|
SEM_PW=$(cat ~/semaphore.creds)
|
||||||
systemctl start semaphore
|
systemctl start semaphore
|
||||||
$STD semaphore user add --admin --login admin --email admin@helper-scripts.com --name Administrator --password "${SEM_PW}" --config /opt/semaphore/config.json
|
$STD semaphore user add --admin --login admin --email admin@community-scripts.com --name Administrator --password "${SEM_PW}" --config /opt/semaphore/config.json
|
||||||
|
|
||||||
msg_ok "Moved from BoltDB to SQLite"
|
msg_ok "Moved from BoltDB to SQLite"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -62,10 +62,10 @@ expect "Email address"
|
|||||||
send "\r"
|
send "\r"
|
||||||
|
|
||||||
expect "Password"
|
expect "Password"
|
||||||
send "helper-scripts.com\r"
|
send "community-scripts.com\r"
|
||||||
|
|
||||||
expect "Password (again)"
|
expect "Password (again)"
|
||||||
send "helper-scripts.com\r"
|
send "community-scripts.com\r"
|
||||||
|
|
||||||
expect eof
|
expect eof
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ service:
|
|||||||
use_prerelease: false
|
use_prerelease: false
|
||||||
dashboard:
|
dashboard:
|
||||||
icon: https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/misc/images/logo.png
|
icon: https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/misc/images/logo.png
|
||||||
icon_link_to: https://helper-scripts.com/
|
icon_link_to: https://community-scripts.com/
|
||||||
web_url: https://github.com/community-scripts/ProxmoxVE/releases
|
web_url: https://github.com/community-scripts/ProxmoxVE/releases
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Setup Config"
|
msg_ok "Setup Config"
|
||||||
|
|||||||
@@ -1,92 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: MickLesk (CanbiZ)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/booklore-app/BookLore
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt install -y ffmpeg
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
JAVA_VERSION="25" setup_java
|
|
||||||
NODE_VERSION="22" setup_nodejs
|
|
||||||
setup_mariadb
|
|
||||||
setup_yq
|
|
||||||
MARIADB_DB_NAME="booklore_db" MARIADB_DB_USER="booklore_user" MARIADB_DB_EXTRA_GRANTS="GRANT SELECT ON \`mysql\`.\`time_zone_name\`" setup_mariadb_db
|
|
||||||
fetch_and_deploy_gh_release "booklore" "booklore-app/BookLore" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building Frontend"
|
|
||||||
cd /opt/booklore/booklore-ui
|
|
||||||
$STD npm install --force
|
|
||||||
$STD npm run build --configuration=production
|
|
||||||
msg_ok "Built Frontend"
|
|
||||||
|
|
||||||
msg_info "Embedding Frontend into Backend"
|
|
||||||
mkdir -p /opt/booklore/booklore-api/src/main/resources/static
|
|
||||||
cp -r /opt/booklore/booklore-ui/dist/booklore/browser/* /opt/booklore/booklore-api/src/main/resources/static/
|
|
||||||
msg_ok "Embedded Frontend into Backend"
|
|
||||||
|
|
||||||
msg_info "Creating Environment"
|
|
||||||
mkdir -p /opt/booklore_storage/{data,books,bookdrop}
|
|
||||||
cat <<EOF >/opt/booklore_storage/.env
|
|
||||||
# Database Configuration
|
|
||||||
DATABASE_URL=jdbc:mariadb://localhost:3306/${MARIADB_DB_NAME}
|
|
||||||
DATABASE_USERNAME=${MARIADB_DB_USER}
|
|
||||||
DATABASE_PASSWORD=${MARIADB_DB_PASS}
|
|
||||||
|
|
||||||
# App Configuration (Spring Boot mapping from app.* properties)
|
|
||||||
APP_PATH_CONFIG=/opt/booklore_storage/data
|
|
||||||
APP_BOOKDROP_FOLDER=/opt/booklore_storage/bookdrop
|
|
||||||
SERVER_PORT=6060
|
|
||||||
EOF
|
|
||||||
msg_ok "Created Environment"
|
|
||||||
|
|
||||||
msg_info "Building Backend"
|
|
||||||
cd /opt/booklore/booklore-api
|
|
||||||
APP_VERSION=$(get_latest_github_release "booklore-app/BookLore")
|
|
||||||
yq eval ".app.version = \"${APP_VERSION}\"" -i src/main/resources/application.yaml
|
|
||||||
$STD ./gradlew clean build -x test --no-daemon
|
|
||||||
mkdir -p /opt/booklore/dist
|
|
||||||
JAR_PATH=$(find /opt/booklore/booklore-api/build/libs -maxdepth 1 -type f -name "booklore-api-*.jar" ! -name "*plain*" | head -n1)
|
|
||||||
if [[ -z "$JAR_PATH" ]]; then
|
|
||||||
msg_error "Backend JAR not found"
|
|
||||||
exit 153
|
|
||||||
fi
|
|
||||||
cp "$JAR_PATH" /opt/booklore/dist/app.jar
|
|
||||||
msg_ok "Built Backend"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/booklore.service
|
|
||||||
[Unit]
|
|
||||||
Description=BookLore Java Service
|
|
||||||
After=network.target mariadb.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/booklore/dist
|
|
||||||
ExecStart=/usr/bin/java -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=75.0 -XX:+ExitOnOutOfMemoryError -jar /opt/booklore/dist/app.jar
|
|
||||||
EnvironmentFile=/opt/booklore_storage/.env
|
|
||||||
SuccessExitStatus=143
|
|
||||||
TimeoutStopSec=10
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now booklore
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -35,7 +35,7 @@ PG_DB_NAME="healthchecks_db" PG_DB_USER="hc_user" PG_DB_PASS=$(openssl rand -bas
|
|||||||
|
|
||||||
msg_info "Setup Keys (Admin / Secret)"
|
msg_info "Setup Keys (Admin / Secret)"
|
||||||
SECRET_KEY="$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)"
|
SECRET_KEY="$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-32)"
|
||||||
ADMIN_EMAIL="admin@helper-scripts.local"
|
ADMIN_EMAIL="admin@community-scripts.com"
|
||||||
ADMIN_PASSWORD="$PG_DB_PASS"
|
ADMIN_PASSWORD="$PG_DB_PASS"
|
||||||
{
|
{
|
||||||
echo "healthchecks Admin Email: $ADMIN_EMAIL"
|
echo "healthchecks Admin Email: $ADMIN_EMAIL"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ fetch_and_deploy_gh_release "inspircd" "inspircd/inspircd" "binary" "latest" "/o
|
|||||||
|
|
||||||
msg_info "Configuring InspIRCd"
|
msg_info "Configuring InspIRCd"
|
||||||
cat <<EOF >/etc/inspircd/inspircd.conf
|
cat <<EOF >/etc/inspircd/inspircd.conf
|
||||||
<define name="networkDomain" value="helper-scripts.com">
|
<define name="networkDomain" value="community-scripts.com">
|
||||||
<define name="networkName" value="Proxmox VE Helper-Scripts">
|
<define name="networkName" value="Proxmox VE Helper-Scripts">
|
||||||
|
|
||||||
<server
|
<server
|
||||||
|
|||||||
@@ -55,10 +55,10 @@ $STD expect <<EOF
|
|||||||
set timeout -1
|
set timeout -1
|
||||||
log_user 0
|
log_user 0
|
||||||
|
|
||||||
spawn bin/console kimai:user:create admin admin@helper-scripts.com ROLE_SUPER_ADMIN
|
spawn bin/console kimai:user:create admin admin@community-scripts.com ROLE_SUPER_ADMIN
|
||||||
|
|
||||||
expect "Please enter the password:"
|
expect "Please enter the password:"
|
||||||
send "helper-scripts.com\r"
|
send "community-scripts.com\r"
|
||||||
|
|
||||||
expect eof
|
expect eof
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ $STD yarn config set ignore-engines true
|
|||||||
$STD yarn install
|
$STD yarn install
|
||||||
$STD yarn run production
|
$STD yarn run production
|
||||||
$STD php artisan key:generate
|
$STD php artisan key:generate
|
||||||
$STD php artisan setup:production --email=admin@helper-scripts.com --password=helper-scripts.com --force
|
$STD php artisan setup:production --email=admin@community-scripts.com --password=community-scripts.com --force
|
||||||
chown -R www-data:www-data /opt/monica
|
chown -R www-data:www-data /opt/monica
|
||||||
chmod -R 775 /opt/monica/storage
|
chmod -R 775 /opt/monica/storage
|
||||||
echo "* * * * * root php /opt/monica/artisan schedule:run >> /dev/null 2>&1" >>/etc/crontab
|
echo "* * * * * root php /opt/monica/artisan schedule:run >> /dev/null 2>&1" >>/etc/crontab
|
||||||
|
|||||||
@@ -91,16 +91,16 @@ expect "Format: mongodb://*" {
|
|||||||
send "$MONGO_CONNECTION_STRING\r"
|
send "$MONGO_CONNECTION_STRING\r"
|
||||||
}
|
}
|
||||||
expect "Administrator username" {
|
expect "Administrator username" {
|
||||||
send "helper-scripts\r"
|
send "community-scripts\r"
|
||||||
}
|
}
|
||||||
expect "Administrator email address" {
|
expect "Administrator email address" {
|
||||||
send "helper-scripts@local.com\r"
|
send "admin@community-scripts.com\r"
|
||||||
}
|
}
|
||||||
expect "Password" {
|
expect "Password" {
|
||||||
send "helper-scripts\r"
|
send "community-scripts\r"
|
||||||
}
|
}
|
||||||
expect "Confirm Password" {
|
expect "Confirm Password" {
|
||||||
send "helper-scripts\r"
|
send "community-scripts\r"
|
||||||
}
|
}
|
||||||
expect eof
|
expect eof
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ read -r -p "${TAB3}Enter your ACME Email: " ACME_EMAIL_INPUT
|
|||||||
yq -i "
|
yq -i "
|
||||||
.services.npmplus.environment |=
|
.services.npmplus.environment |=
|
||||||
(map(select(. != \"TZ=*\" and . != \"ACME_EMAIL=*\" and . != \"INITIAL_ADMIN_EMAIL=*\" and . != \"INITIAL_ADMIN_PASSWORD=*\")) +
|
(map(select(. != \"TZ=*\" and . != \"ACME_EMAIL=*\" and . != \"INITIAL_ADMIN_EMAIL=*\" and . != \"INITIAL_ADMIN_PASSWORD=*\")) +
|
||||||
[\"TZ=$TZ_INPUT\", \"ACME_EMAIL=$ACME_EMAIL_INPUT\", \"INITIAL_ADMIN_EMAIL=admin@local.com\", \"INITIAL_ADMIN_PASSWORD=helper-scripts.com\"])
|
[\"TZ=$TZ_INPUT\", \"ACME_EMAIL=$ACME_EMAIL_INPUT\", \"INITIAL_ADMIN_EMAIL=admin@local.com\", \"INITIAL_ADMIN_PASSWORD=community-scripts.com\"])
|
||||||
" /opt/compose.yaml
|
" /opt/compose.yaml
|
||||||
|
|
||||||
msg_info "Building and Starting NPMplus (Patience)"
|
msg_info "Building and Starting NPMplus (Patience)"
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ PHOTOPRISM_DEBUG='false'
|
|||||||
PHOTOPRISM_LOG_LEVEL='info'
|
PHOTOPRISM_LOG_LEVEL='info'
|
||||||
|
|
||||||
# Site Info
|
# Site Info
|
||||||
PHOTOPRISM_SITE_CAPTION='https://Helper-Scripts.com'
|
PHOTOPRISM_SITE_CAPTION='https://community-scripts.com'
|
||||||
PHOTOPRISM_SITE_DESCRIPTION=''
|
PHOTOPRISM_SITE_DESCRIPTION=''
|
||||||
PHOTOPRISM_SITE_AUTHOR=''
|
PHOTOPRISM_SITE_AUTHOR=''
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ cat <<EOF >/opt/semaphore/config.json
|
|||||||
"access_key_encryption": "${SEM_KEY}"
|
"access_key_encryption": "${SEM_KEY}"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
$STD semaphore user add --admin --login admin --email admin@helper-scripts.com --name Administrator --password "${SEM_PW}" --config /opt/semaphore/config.json
|
$STD semaphore user add --admin --login admin --email admin@community-scripts.com --name Administrator --password "${SEM_PW}" --config /opt/semaphore/config.json
|
||||||
echo "${SEM_PW}" >~/semaphore.creds
|
echo "${SEM_PW}" >~/semaphore.creds
|
||||||
msg_ok "Setup Semaphore"
|
msg_ok "Setup Semaphore"
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -504,7 +504,7 @@ detect_gpu() {
|
|||||||
GPU_PASSTHROUGH="unknown"
|
GPU_PASSTHROUGH="unknown"
|
||||||
|
|
||||||
local gpu_line
|
local gpu_line
|
||||||
gpu_line=$(lspci 2>/dev/null | grep -iE "VGA|3D|Display" | head -1)
|
gpu_line=$(lspci 2>/dev/null | grep -iE "VGA|3D|Display" | head -1 || true)
|
||||||
|
|
||||||
if [[ -n "$gpu_line" ]]; then
|
if [[ -n "$gpu_line" ]]; then
|
||||||
# Extract model: everything after the colon, clean up
|
# Extract model: everything after the colon, clean up
|
||||||
@@ -543,7 +543,7 @@ detect_cpu() {
|
|||||||
|
|
||||||
if [[ -f /proc/cpuinfo ]]; then
|
if [[ -f /proc/cpuinfo ]]; then
|
||||||
local vendor_id
|
local vendor_id
|
||||||
vendor_id=$(grep -m1 "vendor_id" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | tr -d ' ')
|
vendor_id=$(grep -m1 "vendor_id" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | tr -d ' ' || true)
|
||||||
|
|
||||||
case "$vendor_id" in
|
case "$vendor_id" in
|
||||||
GenuineIntel) CPU_VENDOR="intel" ;;
|
GenuineIntel) CPU_VENDOR="intel" ;;
|
||||||
@@ -557,7 +557,7 @@ detect_cpu() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Extract model name and clean it up
|
# Extract model name and clean it up
|
||||||
CPU_MODEL=$(grep -m1 "model name" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | sed 's/^ *//' | sed 's/(R)//g' | sed 's/(TM)//g' | sed 's/ */ /g' | cut -c1-64)
|
CPU_MODEL=$(grep -m1 "model name" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | sed 's/^ *//' | sed 's/(R)//g' | sed 's/(TM)//g' | sed 's/ */ /g' | cut -c1-64 || true)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export CPU_VENDOR CPU_MODEL
|
export CPU_VENDOR CPU_MODEL
|
||||||
@@ -1347,8 +1347,8 @@ post_addon_to_api() {
|
|||||||
# Detect OS info
|
# Detect OS info
|
||||||
local os_type="" os_version=""
|
local os_type="" os_version=""
|
||||||
if [[ -f /etc/os-release ]]; then
|
if [[ -f /etc/os-release ]]; then
|
||||||
os_type=$(grep "^ID=" /etc/os-release | cut -d= -f2 | tr -d '"')
|
os_type=$(grep "^ID=" /etc/os-release | cut -d= -f2 | tr -d '"' || true)
|
||||||
os_version=$(grep "^VERSION_ID=" /etc/os-release | cut -d= -f2 | tr -d '"')
|
os_version=$(grep "^VERSION_ID=" /etc/os-release | cut -d= -f2 | tr -d '"' || true)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local JSON_PAYLOAD
|
local JSON_PAYLOAD
|
||||||
|
|||||||
+11
-11
@@ -173,10 +173,10 @@ get_current_ip() {
|
|||||||
# Check for Debian/Ubuntu (uses hostname -I)
|
# Check for Debian/Ubuntu (uses hostname -I)
|
||||||
if grep -qE 'ID=debian|ID=ubuntu' /etc/os-release; then
|
if grep -qE 'ID=debian|ID=ubuntu' /etc/os-release; then
|
||||||
# Try IPv4 first
|
# Try IPv4 first
|
||||||
CURRENT_IP=$(hostname -I 2>/dev/null | tr ' ' '\n' | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | head -n1)
|
CURRENT_IP=$(hostname -I 2>/dev/null | tr ' ' '\n' | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | head -n1 || true)
|
||||||
# Fallback to IPv6 if no IPv4
|
# Fallback to IPv6 if no IPv4
|
||||||
if [[ -z "$CURRENT_IP" ]]; then
|
if [[ -z "$CURRENT_IP" ]]; then
|
||||||
CURRENT_IP=$(hostname -I 2>/dev/null | tr ' ' '\n' | grep -E ':' | head -n1)
|
CURRENT_IP=$(hostname -I 2>/dev/null | tr ' ' '\n' | grep -E ':' | head -n1 || true)
|
||||||
fi
|
fi
|
||||||
# Check for Alpine (uses ip command)
|
# Check for Alpine (uses ip command)
|
||||||
elif grep -q 'ID=alpine' /etc/os-release; then
|
elif grep -q 'ID=alpine' /etc/os-release; then
|
||||||
@@ -1704,8 +1704,8 @@ ensure_storage_selection_for_vars_file() {
|
|||||||
|
|
||||||
# Read stored values (if any)
|
# Read stored values (if any)
|
||||||
local tpl ct
|
local tpl ct
|
||||||
tpl=$(grep -E '^var_template_storage=' "$vf" | cut -d= -f2-)
|
tpl=$(grep -E '^var_template_storage=' "$vf" | cut -d= -f2- || true)
|
||||||
ct=$(grep -E '^var_container_storage=' "$vf" | cut -d= -f2-)
|
ct=$(grep -E '^var_container_storage=' "$vf" | cut -d= -f2- || true)
|
||||||
|
|
||||||
if [[ -n "$tpl" && -n "$ct" ]]; then
|
if [[ -n "$tpl" && -n "$ct" ]]; then
|
||||||
TEMPLATE_STORAGE="$tpl"
|
TEMPLATE_STORAGE="$tpl"
|
||||||
@@ -1840,7 +1840,7 @@ advanced_settings() {
|
|||||||
if [[ -n "$BRIDGES" ]]; then
|
if [[ -n "$BRIDGES" ]]; then
|
||||||
while IFS= read -r bridge; do
|
while IFS= read -r bridge; do
|
||||||
if [[ -n "$bridge" ]]; then
|
if [[ -n "$bridge" ]]; then
|
||||||
local description=$(grep -A 10 "iface $bridge" /etc/network/interfaces 2>/dev/null | grep '^#' | head -n1 | sed 's/^#\s*//;s/^[- ]*//')
|
local description=$(grep -A 10 "iface $bridge" /etc/network/interfaces 2>/dev/null | grep '^#' | head -n1 | sed 's/^#\s*//;s/^[- ]*//' || true)
|
||||||
BRIDGE_MENU_OPTIONS+=("$bridge" "${description:- }")
|
BRIDGE_MENU_OPTIONS+=("$bridge" "${description:- }")
|
||||||
fi
|
fi
|
||||||
done <<<"$BRIDGES"
|
done <<<"$BRIDGES"
|
||||||
@@ -3322,7 +3322,7 @@ configure_ssh_settings() {
|
|||||||
tag="${tag%\"}"
|
tag="${tag%\"}"
|
||||||
tag="${tag#\"}"
|
tag="${tag#\"}"
|
||||||
local line
|
local line
|
||||||
line=$(grep -E "^${tag}\|" "$MAPFILE" | head -n1 | cut -d'|' -f2-)
|
line=$(grep -E "^${tag}\|" "$MAPFILE" | head -n1 | cut -d'|' -f2- || true)
|
||||||
[[ -n "$line" ]] && printf '%s\n' "$line" >>"$SSH_KEYS_FILE"
|
[[ -n "$line" ]] && printf '%s\n' "$line" >>"$SSH_KEYS_FILE"
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
@@ -3349,7 +3349,7 @@ configure_ssh_settings() {
|
|||||||
tag="${tag%\"}"
|
tag="${tag%\"}"
|
||||||
tag="${tag#\"}"
|
tag="${tag#\"}"
|
||||||
local line
|
local line
|
||||||
line=$(grep -E "^${tag}\|" "$MAPFILE" | head -n1 | cut -d'|' -f2-)
|
line=$(grep -E "^${tag}\|" "$MAPFILE" | head -n1 | cut -d'|' -f2- || true)
|
||||||
[[ -n "$line" ]] && printf '%s\n' "$line" >>"$SSH_KEYS_FILE"
|
[[ -n "$line" ]] && printf '%s\n' "$line" >>"$SSH_KEYS_FILE"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
@@ -4050,7 +4050,7 @@ EOF
|
|||||||
# Fix Debian 13 LXC template bug where / is owned by nobody:nogroup
|
# Fix Debian 13 LXC template bug where / is owned by nobody:nogroup
|
||||||
# This must be done from the host as unprivileged containers cannot chown /
|
# This must be done from the host as unprivileged containers cannot chown /
|
||||||
local rootfs
|
local rootfs
|
||||||
rootfs=$(pct config "$CTID" | grep -E '^rootfs:' | sed 's/rootfs: //' | cut -d',' -f1)
|
rootfs=$(pct config "$CTID" | grep -E '^rootfs:' | sed 's/rootfs: //' | cut -d',' -f1 || true)
|
||||||
if [[ -n "$rootfs" ]]; then
|
if [[ -n "$rootfs" ]]; then
|
||||||
local mount_point="/var/lib/lxc/${CTID}/rootfs"
|
local mount_point="/var/lib/lxc/${CTID}/rootfs"
|
||||||
if [[ -d "$mount_point" ]] && [[ "$(stat -c '%U' "$mount_point")" != "root" ]]; then
|
if [[ -d "$mount_point" ]] && [[ "$(stat -c '%U' "$mount_point")" != "root" ]]; then
|
||||||
@@ -5142,7 +5142,7 @@ create_lxc_container() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Validating storage '$CONTAINER_STORAGE'"
|
msg_info "Validating storage '$CONTAINER_STORAGE'"
|
||||||
STORAGE_TYPE=$(grep -E "^[^:]+: $CONTAINER_STORAGE$" /etc/pve/storage.cfg | cut -d: -f1 | head -1)
|
STORAGE_TYPE=$(grep -E "^[^:]+: $CONTAINER_STORAGE$" /etc/pve/storage.cfg | cut -d: -f1 | head -1 || true)
|
||||||
|
|
||||||
if [[ -z "$STORAGE_TYPE" ]]; then
|
if [[ -z "$STORAGE_TYPE" ]]; then
|
||||||
msg_error "Storage '$CONTAINER_STORAGE' not found in /etc/pve/storage.cfg"
|
msg_error "Storage '$CONTAINER_STORAGE' not found in /etc/pve/storage.cfg"
|
||||||
@@ -5181,7 +5181,7 @@ create_lxc_container() {
|
|||||||
msg_ok "Storage '$CONTAINER_STORAGE' ($STORAGE_TYPE) validated"
|
msg_ok "Storage '$CONTAINER_STORAGE' ($STORAGE_TYPE) validated"
|
||||||
|
|
||||||
msg_info "Validating template storage '$TEMPLATE_STORAGE'"
|
msg_info "Validating template storage '$TEMPLATE_STORAGE'"
|
||||||
TEMPLATE_TYPE=$(grep -E "^[^:]+: $TEMPLATE_STORAGE$" /etc/pve/storage.cfg | cut -d: -f1)
|
TEMPLATE_TYPE=$(grep -E "^[^:]+: $TEMPLATE_STORAGE$" /etc/pve/storage.cfg | cut -d: -f1 || true)
|
||||||
|
|
||||||
if ! pvesm status -content vztmpl 2>/dev/null | awk 'NR>1{print $1}' | grep -qx "$TEMPLATE_STORAGE"; then
|
if ! pvesm status -content vztmpl 2>/dev/null | awk 'NR>1{print $1}' | grep -qx "$TEMPLATE_STORAGE"; then
|
||||||
msg_warn "Template storage '$TEMPLATE_STORAGE' may not support 'vztmpl'"
|
msg_warn "Template storage '$TEMPLATE_STORAGE' may not support 'vztmpl'"
|
||||||
@@ -5704,7 +5704,7 @@ description() {
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+7
-7
@@ -524,12 +524,12 @@ is_tool_installed() {
|
|||||||
case "$tool_name" in
|
case "$tool_name" in
|
||||||
mariadb)
|
mariadb)
|
||||||
if command -v mariadb >/dev/null 2>&1; then
|
if command -v mariadb >/dev/null 2>&1; then
|
||||||
installed_version=$(mariadb --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
installed_version=$(mariadb --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 || true)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
mysql)
|
mysql)
|
||||||
if command -v mysql >/dev/null 2>&1; then
|
if command -v mysql >/dev/null 2>&1; then
|
||||||
installed_version=$(mysql --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
|
installed_version=$(mysql --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 || true)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
mongodb | mongod)
|
mongodb | mongod)
|
||||||
@@ -539,7 +539,7 @@ is_tool_installed() {
|
|||||||
;;
|
;;
|
||||||
node | nodejs)
|
node | nodejs)
|
||||||
if command -v node >/dev/null 2>&1; then
|
if command -v node >/dev/null 2>&1; then
|
||||||
installed_version=$(node -v 2>/dev/null | grep -oP '^v\K[0-9]+')
|
installed_version=$(node -v 2>/dev/null | grep -oP '^v\K[0-9]+' || true)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
php)
|
php)
|
||||||
@@ -4837,7 +4837,7 @@ _setup_nvidia_gpu() {
|
|||||||
# Use regex to extract version number (###.##.## or ###.## pattern)
|
# Use regex to extract version number (###.##.## or ###.## pattern)
|
||||||
local nvidia_host_version=""
|
local nvidia_host_version=""
|
||||||
if [[ -f /proc/driver/nvidia/version ]]; then
|
if [[ -f /proc/driver/nvidia/version ]]; then
|
||||||
nvidia_host_version=$(grep -oP '\d{3,}\.\d+(\.\d+)?' /proc/driver/nvidia/version 2>/dev/null | head -1)
|
nvidia_host_version=$(grep -oP '\d{3,}\.\d+(\.\d+)?' /proc/driver/nvidia/version 2>/dev/null | head -1 || true)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$nvidia_host_version" ]]; then
|
if [[ -z "$nvidia_host_version" ]]; then
|
||||||
@@ -7321,7 +7321,7 @@ function setup_meilisearch() {
|
|||||||
MEILI_HOST="${MEILISEARCH_HOST:-127.0.0.1}"
|
MEILI_HOST="${MEILISEARCH_HOST:-127.0.0.1}"
|
||||||
MEILI_PORT="${MEILISEARCH_PORT:-7700}"
|
MEILI_PORT="${MEILISEARCH_PORT:-7700}"
|
||||||
MEILI_DUMP_DIR="${MEILISEARCH_DUMP_DIR:-/var/lib/meilisearch/dumps}"
|
MEILI_DUMP_DIR="${MEILISEARCH_DUMP_DIR:-/var/lib/meilisearch/dumps}"
|
||||||
MEILI_MASTER_KEY=$(grep -E "^master_key\s*=" /etc/meilisearch.toml 2>/dev/null | sed 's/.*=\s*"\(.*\)"/\1/' | tr -d ' ')
|
MEILI_MASTER_KEY=$(grep -E "^master_key\s*=" /etc/meilisearch.toml 2>/dev/null | sed 's/.*=\s*"\(.*\)"/\1/' | tr -d ' ' || true)
|
||||||
|
|
||||||
# Create dump before update if migration is needed
|
# Create dump before update if migration is needed
|
||||||
local DUMP_UID=""
|
local DUMP_UID=""
|
||||||
@@ -7387,7 +7387,7 @@ function setup_meilisearch() {
|
|||||||
# We choose option 2: backup and proceed with warning
|
# We choose option 2: backup and proceed with warning
|
||||||
if [[ "$NEEDS_MIGRATION" == "true" ]] && [[ -z "$DUMP_UID" ]]; then
|
if [[ "$NEEDS_MIGRATION" == "true" ]] && [[ -z "$DUMP_UID" ]]; then
|
||||||
local MEILI_DB_PATH
|
local MEILI_DB_PATH
|
||||||
MEILI_DB_PATH=$(grep -E "^db_path\s*=" /etc/meilisearch.toml 2>/dev/null | sed 's/.*=\s*"\(.*\)"/\1/' | tr -d ' ')
|
MEILI_DB_PATH=$(grep -E "^db_path\s*=" /etc/meilisearch.toml 2>/dev/null | sed 's/.*=\s*"\(.*\)"/\1/' | tr -d ' ' || true)
|
||||||
MEILI_DB_PATH="${MEILI_DB_PATH:-/var/lib/meilisearch/data}"
|
MEILI_DB_PATH="${MEILI_DB_PATH:-/var/lib/meilisearch/data}"
|
||||||
|
|
||||||
if [[ -d "$MEILI_DB_PATH" ]] && [[ -n "$(ls -A "$MEILI_DB_PATH" 2>/dev/null)" ]]; then
|
if [[ -d "$MEILI_DB_PATH" ]] && [[ -n "$(ls -A "$MEILI_DB_PATH" 2>/dev/null)" ]]; then
|
||||||
@@ -7407,7 +7407,7 @@ function setup_meilisearch() {
|
|||||||
# If migration needed and dump was created, remove old data and import dump
|
# If migration needed and dump was created, remove old data and import dump
|
||||||
if [[ "$NEEDS_MIGRATION" == "true" ]] && [[ -n "$DUMP_UID" ]]; then
|
if [[ "$NEEDS_MIGRATION" == "true" ]] && [[ -n "$DUMP_UID" ]]; then
|
||||||
local MEILI_DB_PATH
|
local MEILI_DB_PATH
|
||||||
MEILI_DB_PATH=$(grep -E "^db_path\s*=" /etc/meilisearch.toml 2>/dev/null | sed 's/.*=\s*"\(.*\)"/\1/' | tr -d ' ')
|
MEILI_DB_PATH=$(grep -E "^db_path\s*=" /etc/meilisearch.toml 2>/dev/null | sed 's/.*=\s*"\(.*\)"/\1/' | tr -d ' ' || true)
|
||||||
MEILI_DB_PATH="${MEILI_DB_PATH:-/var/lib/meilisearch/data}"
|
MEILI_DB_PATH="${MEILI_DB_PATH:-/var/lib/meilisearch/data}"
|
||||||
|
|
||||||
msg_info "Removing old MeiliSearch database for migration"
|
msg_info "Removing old MeiliSearch database for migration"
|
||||||
|
|||||||
+1
-1
@@ -594,7 +594,7 @@ set_description() {
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ fi
|
|||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
-hostname $NAME
|
-hostname $NAME
|
||||||
-tags proxmox-helper-scripts
|
-tags community-script
|
||||||
-onboot 0
|
-onboot 0
|
||||||
-cores 2
|
-cores 2
|
||||||
-memory 2048
|
-memory 2048
|
||||||
|
|||||||
@@ -165,9 +165,9 @@ function install() {
|
|||||||
else
|
else
|
||||||
read -rp "${TAB}Set admin username [admin]: " admin_user
|
read -rp "${TAB}Set admin username [admin]: " admin_user
|
||||||
admin_user=${admin_user:-admin}
|
admin_user=${admin_user:-admin}
|
||||||
read -rsp "${TAB}Set admin password [helper-scripts.com]: " admin_pass
|
read -rsp "${TAB}Set admin password [community-scripts.com]: " admin_pass
|
||||||
echo ""
|
echo ""
|
||||||
admin_pass=${admin_pass:-helper-scripts.com}
|
admin_pass=${admin_pass:-community-scripts.com}
|
||||||
msg_ok "Configured with admin user: ${admin_user}"
|
msg_ok "Configured with admin user: ${admin_user}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -201,9 +201,9 @@ server:
|
|||||||
- neverWatchPath: "/lost+found"
|
- neverWatchPath: "/lost+found"
|
||||||
auth:
|
auth:
|
||||||
adminUsername: admin
|
adminUsername: admin
|
||||||
adminPassword: helper-scripts.com
|
adminPassword: community-scripts.com
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Configured with default admin (admin / helper-scripts.com)"
|
msg_ok "Configured with default admin (admin / community-scripts.com)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Creating service"
|
msg_info "Creating service"
|
||||||
|
|||||||
@@ -140,8 +140,8 @@ if [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
|
|||||||
cd /usr/local/community-scripts
|
cd /usr/local/community-scripts
|
||||||
filebrowser config init -a '0.0.0.0' -p "$PORT" -d "$DB_PATH" &>/dev/null
|
filebrowser config init -a '0.0.0.0' -p "$PORT" -d "$DB_PATH" &>/dev/null
|
||||||
filebrowser config set -a '0.0.0.0' -p "$PORT" -d "$DB_PATH" &>/dev/null
|
filebrowser config set -a '0.0.0.0' -p "$PORT" -d "$DB_PATH" &>/dev/null
|
||||||
filebrowser users add admin helper-scripts.com --perm.admin --database "$DB_PATH" &>/dev/null
|
filebrowser users add admin community-scripts.com --perm.admin --database "$DB_PATH" &>/dev/null
|
||||||
msg_ok "Default authentication configured (admin:helper-scripts.com)"
|
msg_ok "Default authentication configured (admin:community-scripts.com)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Creating service"
|
msg_info "Creating service"
|
||||||
|
|||||||
+27
-7
@@ -3,7 +3,7 @@
|
|||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
# Author: MickLesk (CanbiZ)
|
# Author: MickLesk (CanbiZ)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://komo.do/ | Github: https://github.com/mbecker20/komodo
|
# Source: https://komo.do/ | Github: https://github.com/moghtech/komodo
|
||||||
if ! command -v curl &>/dev/null; then
|
if ! command -v curl &>/dev/null; then
|
||||||
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
||||||
apt-get update >/dev/null 2>&1 || apk update >/dev/null 2>&1
|
apt-get update >/dev/null 2>&1 || apk update >/dev/null 2>&1
|
||||||
@@ -82,6 +82,7 @@ function update() {
|
|||||||
msg_error "Failed to create backup of ${COMPOSE_BASENAME}!"
|
msg_error "Failed to create backup of ${COMPOSE_BASENAME}!"
|
||||||
exit 235
|
exit 235
|
||||||
}
|
}
|
||||||
|
cp "$COMPOSE_ENV" "${COMPOSE_ENV}.bak_$(date +%Y%m%d_%H%M%S)" 2>/dev/null || true
|
||||||
|
|
||||||
GITHUB_URL="https://raw.githubusercontent.com/moghtech/komodo/main/compose/${COMPOSE_BASENAME}"
|
GITHUB_URL="https://raw.githubusercontent.com/moghtech/komodo/main/compose/${COMPOSE_BASENAME}"
|
||||||
if ! curl -fsSL "$GITHUB_URL" -o "$COMPOSE_FILE"; then
|
if ! curl -fsSL "$GITHUB_URL" -o "$COMPOSE_FILE"; then
|
||||||
@@ -90,8 +91,29 @@ function update() {
|
|||||||
exit 115
|
exit 115
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -qxF 'COMPOSE_KOMODO_BACKUPS_PATH=/etc/komodo/backups' "$COMPOSE_ENV"; then
|
# === v2 migration: image tag (latest is deprecated) ===
|
||||||
sed -i '/^COMPOSE_KOMODO_IMAGE_TAG=latest$/a COMPOSE_KOMODO_BACKUPS_PATH=/etc/komodo/backups' "$COMPOSE_ENV"
|
if grep -q '^COMPOSE_KOMODO_IMAGE_TAG=latest' "$COMPOSE_ENV"; then
|
||||||
|
msg_info "Migrating to Komodo v2 image tag"
|
||||||
|
sed -i 's/^COMPOSE_KOMODO_IMAGE_TAG=latest/COMPOSE_KOMODO_IMAGE_TAG=2/' "$COMPOSE_ENV"
|
||||||
|
msg_ok "Migrated image tag to :2"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# === v2 migration: DB credential variable names ===
|
||||||
|
if grep -q '^KOMODO_DB_USERNAME=' "$COMPOSE_ENV"; then
|
||||||
|
msg_info "Migrating database credential variables"
|
||||||
|
sed -i 's/^KOMODO_DB_USERNAME=/KOMODO_DATABASE_USERNAME=/' "$COMPOSE_ENV"
|
||||||
|
sed -i 's/^KOMODO_DB_PASSWORD=/KOMODO_DATABASE_PASSWORD=/' "$COMPOSE_ENV"
|
||||||
|
msg_ok "Migrated DB credential variables"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# === v2 migration: remove deprecated passkey (replaced by PKI) ===
|
||||||
|
if grep -q '^KOMODO_PASSKEY=' "$COMPOSE_ENV"; then
|
||||||
|
sed -i '/^KOMODO_PASSKEY=/d' "$COMPOSE_ENV"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# === ensure backups path is set ===
|
||||||
|
if ! grep -q 'COMPOSE_KOMODO_BACKUPS_PATH=' "$COMPOSE_ENV"; then
|
||||||
|
echo 'COMPOSE_KOMODO_BACKUPS_PATH=/etc/komodo/backups' >>"$COMPOSE_ENV"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file "$COMPOSE_ENV" pull
|
$STD docker compose -p komodo -f "$COMPOSE_FILE" --env-file "$COMPOSE_ENV" pull
|
||||||
@@ -192,14 +214,12 @@ function install() {
|
|||||||
|
|
||||||
DB_PASSWORD=$(openssl rand -base64 16 | tr -d '/+=')
|
DB_PASSWORD=$(openssl rand -base64 16 | tr -d '/+=')
|
||||||
ADMIN_PASSWORD=$(openssl rand -base64 8 | tr -d '/+=')
|
ADMIN_PASSWORD=$(openssl rand -base64 8 | tr -d '/+=')
|
||||||
PASSKEY=$(openssl rand -base64 24 | tr -d '/+=')
|
|
||||||
WEBHOOK_SECRET=$(openssl rand -base64 24 | tr -d '/+=')
|
WEBHOOK_SECRET=$(openssl rand -base64 24 | tr -d '/+=')
|
||||||
JWT_SECRET=$(openssl rand -base64 24 | tr -d '/+=')
|
JWT_SECRET=$(openssl rand -base64 24 | tr -d '/+=')
|
||||||
|
|
||||||
sed -i "s/^KOMODO_DB_USERNAME=.*/KOMODO_DB_USERNAME=komodo_admin/" "$COMPOSE_ENV"
|
sed -i "s/^KOMODO_DATABASE_USERNAME=.*/KOMODO_DATABASE_USERNAME=komodo_admin/" "$COMPOSE_ENV"
|
||||||
sed -i "s/^KOMODO_DB_PASSWORD=.*/KOMODO_DB_PASSWORD=${DB_PASSWORD}/" "$COMPOSE_ENV"
|
sed -i "s/^KOMODO_DATABASE_PASSWORD=.*/KOMODO_DATABASE_PASSWORD=${DB_PASSWORD}/" "$COMPOSE_ENV"
|
||||||
sed -i "s/^KOMODO_INIT_ADMIN_PASSWORD=changeme/KOMODO_INIT_ADMIN_PASSWORD=${ADMIN_PASSWORD}/" "$COMPOSE_ENV"
|
sed -i "s/^KOMODO_INIT_ADMIN_PASSWORD=changeme/KOMODO_INIT_ADMIN_PASSWORD=${ADMIN_PASSWORD}/" "$COMPOSE_ENV"
|
||||||
sed -i "s/^KOMODO_PASSKEY=.*/KOMODO_PASSKEY=${PASSKEY}/" "$COMPOSE_ENV"
|
|
||||||
sed -i "s/^KOMODO_WEBHOOK_SECRET=.*/KOMODO_WEBHOOK_SECRET=${WEBHOOK_SECRET}/" "$COMPOSE_ENV"
|
sed -i "s/^KOMODO_WEBHOOK_SECRET=.*/KOMODO_WEBHOOK_SECRET=${WEBHOOK_SECRET}/" "$COMPOSE_ENV"
|
||||||
sed -i "s/^KOMODO_JWT_SECRET=.*/KOMODO_JWT_SECRET=${JWT_SECRET}/" "$COMPOSE_ENV"
|
sed -i "s/^KOMODO_JWT_SECRET=.*/KOMODO_JWT_SECRET=${JWT_SECRET}/" "$COMPOSE_ENV"
|
||||||
msg_ok "Configured environment"
|
msg_ok "Configured environment"
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
__ __
|
||||||
|
/ /_ ____ ____ ___ ___ / /_ ________ _ __
|
||||||
|
/ __ \/ __ \/ __ `__ \/ _ \/ __ \/ ___/ _ \ | /| / /
|
||||||
|
/ / / / /_/ / / / / / / __/ /_/ / / / __/ |/ |/ /
|
||||||
|
/_/ /_/\____/_/ /_/ /_/\___/_.___/_/ \___/|__/|__/
|
||||||
|
|
||||||
+3
-1
@@ -177,6 +177,8 @@ pveam update >/dev/null
|
|||||||
msg_ok "Updated LXC template list"
|
msg_ok "Updated LXC template list"
|
||||||
|
|
||||||
# Build TurnKey selection menu dynamically from available templates
|
# Build TurnKey selection menu dynamically from available templates
|
||||||
|
# Requires gawk for regex capture groups in match()
|
||||||
|
command -v gawk &>/dev/null || apt-get install -y gawk &>/dev/null
|
||||||
declare -A TURNKEY_TEMPLATES
|
declare -A TURNKEY_TEMPLATES
|
||||||
TURNKEY_MENU=()
|
TURNKEY_MENU=()
|
||||||
MSG_MAX_LENGTH=0
|
MSG_MAX_LENGTH=0
|
||||||
@@ -185,7 +187,7 @@ while IFS=$'\t' read -r TEMPLATE_FILE TAG ITEM; do
|
|||||||
OFFSET=2
|
OFFSET=2
|
||||||
((${#ITEM} + OFFSET > MSG_MAX_LENGTH)) && MSG_MAX_LENGTH=$((${#ITEM} + OFFSET))
|
((${#ITEM} + OFFSET > MSG_MAX_LENGTH)) && MSG_MAX_LENGTH=$((${#ITEM} + OFFSET))
|
||||||
TURNKEY_MENU+=("$TAG" "$ITEM " "OFF")
|
TURNKEY_MENU+=("$TAG" "$ITEM " "OFF")
|
||||||
done < <(pveam available -section turnkeylinux | awk '{
|
done < <(pveam available -section turnkeylinux | gawk '{
|
||||||
tpl = $2
|
tpl = $2
|
||||||
if (match(tpl, /debian-([0-9]+)-turnkey-([^_]+)_([^_]+)_/, m)) {
|
if (match(tpl, /debian-([0-9]+)-turnkey-([^_]+)_([^_]+)_/, m)) {
|
||||||
app = m[2]; deb = m[1]; ver = m[3]
|
app = m[2]; deb = m[1]; ver = m[3]
|
||||||
|
|||||||
+1
-1
@@ -551,7 +551,7 @@ qm set $VMID \
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -631,7 +631,7 @@ rm -f "$WORK_FILE"
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -568,7 +568,7 @@ fi
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -639,7 +639,7 @@ msg_ok "Resized disk"
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -622,7 +622,7 @@ qm set $VMID \
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -546,7 +546,7 @@ qm set $VMID \
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -605,7 +605,7 @@ msg_ok "Resized disk to ${DISK_SIZE}"
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -737,7 +737,7 @@ done
|
|||||||
|
|
||||||
msg_info "Creating a OPNsense VM"
|
msg_info "Creating a OPNsense VM"
|
||||||
qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \
|
qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \
|
||||||
-name $HN -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
|
-name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
|
||||||
pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null
|
pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null
|
||||||
qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null
|
qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null
|
||||||
qm set $VMID \
|
qm set $VMID \
|
||||||
@@ -750,7 +750,7 @@ qm resize $VMID scsi0 20G >/dev/null
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/michelroegl-brunner/ProxmoxVE/refs/heads/develop/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/michelroegl-brunner/ProxmoxVE/refs/heads/develop/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -560,7 +560,7 @@ qm set $VMID \
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -462,7 +462,7 @@ qm set $VMID \
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -610,7 +610,7 @@ fi
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -542,7 +542,7 @@ qm set $VMID \
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -544,7 +544,7 @@ qm set $VMID \
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -543,7 +543,7 @@ qm set $VMID \
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -590,7 +590,7 @@ qm resize $VMID scsi0 ${DISK_SIZE} >/dev/null
|
|||||||
DESCRIPTION=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
<div align='center'>
|
<div align='center'>
|
||||||
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
|
<a href='https://community-scripts.com' target='_blank' rel='noopener noreferrer'>
|
||||||
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
<img src='https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user