mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-02 19:57:04 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ba49aa3f3 | |||
| 34affb81cf | |||
| 2fbdddefd0 | |||
| 9f20cf42a6 | |||
| 62be65b496 |
+3
-1
@@ -577,13 +577,15 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- FileFlows: replace the program folders on update [@MickLesk](https://github.com/MickLesk) ([#18380](https://github.com/community-scripts/ProxmoxVE/pull/18380))
|
||||
- anchor: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18373](https://github.com/community-scripts/ProxmoxVE/pull/18373))
|
||||
- guardian: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18375](https://github.com/community-scripts/ProxmoxVE/pull/18375))
|
||||
- nametag: bump Node.js from 20 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18376](https://github.com/community-scripts/ProxmoxVE/pull/18376))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- fix: do not wait forever for verbose output a daemon keeps open [@MickLesk](https://github.com/MickLesk) ([core#185](https://github.com/community-scripts/core/pull/185))
|
||||
- github: trim theater, add signal to the engine bug report; move AI block to end of PR template [@MickLesk](https://github.com/MickLesk) ([core#186](https://github.com/community-scripts/core/pull/186))
|
||||
- fix: do not wait forever for verbose output a daemon keeps open [@MickLesk](https://github.com/MickLesk) ([core#185](https://github.com/community-scripts/core/pull/185))
|
||||
|
||||
## 2026-11-01
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@ function update_script() {
|
||||
fi
|
||||
msg_ok "Ensured ASP.NET Core Runtime"
|
||||
|
||||
rm -rf /opt/fileflows/{Server,FlowRunner,Libraries,Agent}
|
||||
fetch_and_deploy_from_url "https://fileflows.com/downloads/ff-latest.tar.xz" "/opt/fileflows"
|
||||
|
||||
msg_info "Starting Service"
|
||||
|
||||
Executable
+83
@@ -0,0 +1,83 @@
|
||||
#!/usr/bin/env bash
|
||||
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
||||
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: uchouT (uchouT)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/OpenListTeam/OpenList/
|
||||
|
||||
APP="OpenList"
|
||||
var_tags="${var_tags:-files;storage}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
var_ram="${var_ram:-1024}"
|
||||
var_disk="${var_disk:-6}"
|
||||
var_version="${var_version:-13}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
run_os_update
|
||||
}
|
||||
|
||||
update_deb_based() {
|
||||
if [[ ! -f /opt/openlist/openlist ]]; then
|
||||
msg_error "No OpenList Installation Found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if check_for_gh_release "openlist" "OpenListTeam/OpenList"; then
|
||||
msg_info "Stopping OpenList"
|
||||
systemctl stop openlist
|
||||
msg_ok "Stopped OpenList"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "openlist" "OpenListTeam/OpenList" "prebuild" "latest" "/opt/openlist" "openlist-linux-musl-$(arch_resolve "amd64" "arm64").tar.gz"
|
||||
|
||||
msg_info "Starting OpenList"
|
||||
systemctl start openlist
|
||||
msg_ok "Started OpenList"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
}
|
||||
|
||||
update_alpine() {
|
||||
if [[ ! -f /opt/openlist/openlist ]]; then
|
||||
msg_error "No OpenList Installation Found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
msg_info "Updating Alpine Packages"
|
||||
$STD apk -U upgrade
|
||||
msg_ok "Updated Alpine Packages"
|
||||
|
||||
if check_for_gh_release "openlist" "OpenListTeam/OpenList"; then
|
||||
msg_info "Stopping OpenList"
|
||||
$STD rc-service openlist stop
|
||||
msg_ok "Stopped OpenList"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "openlist" "OpenListTeam/OpenList" "prebuild" "latest" "/opt/openlist" "openlist-linux-musl-$(arch_resolve "amd64" "arm64").tar.gz"
|
||||
|
||||
msg_info "Starting OpenList"
|
||||
$STD rc-service openlist start
|
||||
msg_ok "Started OpenList"
|
||||
msg_ok "Updated successfully!"
|
||||
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 "${GATEWAY}${BGN}http://${IP}:5244${CL}"
|
||||
echo -e "${INFO}${YW}Credentials saved in:${CL}"
|
||||
echo -e "${TAB}/root/openlist.creds"
|
||||
@@ -30,41 +30,6 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ -d /opt/wikijs/backend ]]; then
|
||||
NODE_VERSION="26" setup_nodejs
|
||||
|
||||
if check_for_gh_release "wikijs" "requarks/wiki"; then
|
||||
PUPPETEER_INSTALLED=$([[ -d /opt/wikijs/backend/node_modules/puppeteer ]] && echo "true" || echo "false")
|
||||
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop wikijs
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
create_backup /opt/wikijs/config.yml
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz"
|
||||
restore_backup
|
||||
|
||||
cd /opt/wikijs/backend
|
||||
if [[ "$(arch_resolve)" == "arm64" ]]; then
|
||||
msg_info "Building Wiki.js Dependencies"
|
||||
$STD npm ci --omit=dev
|
||||
msg_ok "Built Wiki.js Dependencies"
|
||||
fi
|
||||
if [[ "$PUPPETEER_INSTALLED" == "true" ]]; then
|
||||
msg_info "Reinstalling Puppeteer"
|
||||
$STD npm install --no-save --force --include=optional --no-ignore-scripts --no-audit --no-fund "puppeteer@$(sed -n 's/^installVersion: *//p' modules/extensions/puppeteer/definition.yml)"
|
||||
msg_ok "Reinstalled Puppeteer"
|
||||
fi
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start wikijs
|
||||
msg_ok "Started Service"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
|
||||
msg_warn "Wiki.js 3 cannot update a 2.x install in place. Export it under Administration > Utilities > Export for Wiki.js 3.x and import it into a new Wiki.js 3 container."
|
||||
NODE_VERSION="26" NODE_MODULE="yarn,node-gyp" setup_nodejs
|
||||
|
||||
if check_for_gh_release "wikijs" "requarks/wiki-v2"; then
|
||||
|
||||
Executable
+90
@@ -0,0 +1,90 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: uchouT (uchouT)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/OpenListTeam/OpenList/
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
fetch_and_deploy_gh_release "openlist" "OpenListTeam/OpenList" "prebuild" "latest" "/opt/openlist" "openlist-linux-musl-$(arch_resolve "amd64" "arm64").tar.gz"
|
||||
|
||||
msg_info "Setting up OpenList"
|
||||
ADMIN_PASS="$(head -c 256 /dev/urandom | tr -dc 'A-Za-z0-9')"
|
||||
ADMIN_PASS="${ADMIN_PASS:0:16}"
|
||||
$STD /opt/openlist/openlist --data /opt/openlist_data admin set "$ADMIN_PASS"
|
||||
if [[ ! -f /opt/openlist_data/data.db ]]; then
|
||||
msg_error "OpenList did not initialise its database"
|
||||
exit 1
|
||||
fi
|
||||
{
|
||||
echo "OpenList Credentials"
|
||||
echo "Username: admin"
|
||||
echo "Password: ${ADMIN_PASS}"
|
||||
} >~/openlist.creds
|
||||
chmod 600 ~/openlist.creds
|
||||
msg_ok "Set up OpenList"
|
||||
|
||||
setup_deb_based() {
|
||||
msg_info "Creating OpenList Service"
|
||||
cat <<EOF >/etc/systemd/system/openlist.service
|
||||
[Unit]
|
||||
Description=OpenList
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/openlist
|
||||
ExecStart=/opt/openlist/openlist server --data /opt/openlist_data
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now openlist
|
||||
msg_ok "Created OpenList Service"
|
||||
}
|
||||
|
||||
setup_alpine() {
|
||||
msg_info "Creating OpenList Service"
|
||||
cat <<'EOF' >/etc/init.d/openlist
|
||||
#!/sbin/openrc-run
|
||||
name="OpenList"
|
||||
description="OpenList - a file list program that supports multiple storages"
|
||||
|
||||
command="/opt/openlist/openlist"
|
||||
command_args="server --data /opt/openlist_data"
|
||||
supervisor=supervise-daemon
|
||||
directory="/opt/openlist"
|
||||
output_log="/var/log/openlist.log"
|
||||
error_log="/var/log/openlist.log"
|
||||
respawn_delay=10
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after firewall
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -f -m 0640 "$output_log"
|
||||
}
|
||||
EOF
|
||||
chmod +x /etc/init.d/openlist
|
||||
$STD rc-update add openlist default
|
||||
$STD rc-service openlist start
|
||||
msg_ok "Created OpenList Service"
|
||||
}
|
||||
|
||||
run_os_setup
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -17,45 +17,26 @@ msg_info "Installing Dependencies"
|
||||
$STD apt install -y git
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
NODE_VERSION="26" setup_nodejs
|
||||
NODE_VERSION="26" NODE_MODULE="yarn,node-gyp" setup_nodejs
|
||||
PG_VERSION="17" setup_postgresql
|
||||
PG_DB_NAME="wiki" PG_DB_USER="wikijs_user" setup_postgresql_db
|
||||
fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz"
|
||||
|
||||
if [[ "$(arch_resolve)" == "arm64" ]]; then
|
||||
msg_info "Building Wiki.js Dependencies"
|
||||
cd /opt/wikijs/backend
|
||||
$STD npm ci --omit=dev
|
||||
msg_ok "Built Wiki.js Dependencies"
|
||||
fi
|
||||
PG_DB_NAME="wiki" PG_DB_USER="wikijs_user" PG_DB_EXTENSIONS="pg_trgm" setup_postgresql_db
|
||||
fetch_and_deploy_gh_release "wikijs" "requarks/wiki-v2" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz"
|
||||
|
||||
msg_info "Configuring Wiki.js"
|
||||
mkdir -p /opt/wikijs_data
|
||||
cp /opt/wikijs/config.sample.yml /opt/wikijs/config.yml
|
||||
sed -i \
|
||||
-e "s|^ user: .*| user: wikijs_user|" \
|
||||
-e "s|^ pass: .*| pass: ${PG_DB_PASS}|" \
|
||||
-e "s|^ db: .*| db: wiki|" \
|
||||
-e "s|^dataPath: .*|dataPath: /opt/wikijs_data|" \
|
||||
/opt/wikijs/config.yml
|
||||
ADMIN_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-16)
|
||||
{
|
||||
echo ""
|
||||
echo "Wiki.js Admin"
|
||||
echo "Email: admin@example.com"
|
||||
echo "Password: ${ADMIN_PASS}"
|
||||
} >>~/wikijs.creds
|
||||
mv /opt/wikijs/config.sample.yml /opt/wikijs/config.yml
|
||||
sed -i -E 's|^( *user: ).*|\1'"$PG_DB_USER"'|' /opt/wikijs/config.yml
|
||||
sed -i -E 's|^( *pass: ).*|\1'"$PG_DB_PASS"'|' /opt/wikijs/config.yml
|
||||
msg_ok "Configured Wiki.js"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/wikijs.service
|
||||
[Unit]
|
||||
Description=Wiki.js
|
||||
After=network.target postgresql.service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/node --no-experimental-webstorage backend
|
||||
ExecStart=/usr/bin/node server
|
||||
Restart=always
|
||||
User=root
|
||||
Environment=NODE_ENV=production
|
||||
@@ -64,13 +45,7 @@ WorkingDirectory=/opt/wikijs
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl set-environment ADMIN_PASS="${ADMIN_PASS}"
|
||||
systemctl enable -q --now wikijs
|
||||
for _ in $(seq 60); do
|
||||
curl -fs -o /dev/null http://127.0.0.1:3000 && break
|
||||
sleep 2
|
||||
done
|
||||
systemctl unset-environment ADMIN_PASS
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
|
||||
Reference in New Issue
Block a user