mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-18 02:26:11 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b856fd7ae0 | |||
| 7a80b6c5b0 |
@@ -524,14 +524,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 2026-08-17
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- fix romm: deploy EmulatorJS and Ruffle after the frontend build [@angusmaul](https://github.com/angusmaul) ([#16571](https://github.com/community-scripts/ProxmoxVE/pull/16571))
|
|
||||||
|
|
||||||
## 2026-08-16
|
## 2026-08-16
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|||||||
+3
-3
@@ -29,15 +29,15 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
RELEASE="2.3.0"
|
|
||||||
if check_for_gh_release "ownfoil" "a1ex4/ownfoil" "${RELEASE}" "pinned until 2.4.0 (coming soon) is tested, possible Breaking Changes."; then
|
if check_for_gh_release "ownfoil" "a1ex4/ownfoil"; then
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop ownfoil
|
systemctl stop ownfoil
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
create_backup /opt/ownfoil/app/config
|
create_backup /opt/ownfoil/app/config
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ownfoil" "a1ex4/ownfoil" "tarball" "${RELEASE}"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ownfoil" "a1ex4/ownfoil" "tarball"
|
||||||
|
|
||||||
restore_backup
|
restore_backup
|
||||||
|
|
||||||
|
|||||||
+9
-1
@@ -76,7 +76,15 @@ EOF
|
|||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "singlefile" "latest" "/opt/patchmon" "patchmon-server-linux-$(arch_resolve)"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "singlefile" "latest" "/opt/patchmon" "patchmon-server-linux-$(arch_resolve)"
|
||||||
mv /opt/patchmon/PatchMon /opt/patchmon/patchmon-server
|
mv /opt/patchmon/PatchMon /opt/patchmon/patchmon-server
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ssg-content" "ComplianceAsCode/content" "prebuild" "latest" "/opt/patchmon/ssg-content" "scap-security-guide-*.tar.gz"
|
|
||||||
|
msg_info "Updating SCAP Content"
|
||||||
|
RELEASE=$(get_latest_github_release "ComplianceAsCode/content")
|
||||||
|
curl_with_retry "https://github.com/ComplianceAsCode/content/releases/download/v${RELEASE}/scap-security-guide-${RELEASE}.tar.gz" "/tmp/ssg.tar.gz"
|
||||||
|
mkdir -p /opt/patchmon/ssg-content
|
||||||
|
find /opt/patchmon/ssg-content -mindepth 1 -delete
|
||||||
|
tar -xzf /tmp/ssg.tar.gz -C /opt/patchmon/ssg-content --strip-components=1 --wildcards '*/ssg-*-ds.xml'
|
||||||
|
rm -f /tmp/ssg.tar.gz
|
||||||
|
msg_ok "Updated SCAP Content"
|
||||||
|
|
||||||
restore_backup
|
restore_backup
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ $STD apt install -y git
|
|||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
setup_uv
|
setup_uv
|
||||||
fetch_and_deploy_gh_release "ownfoil" "a1ex4/ownfoil" "tarball" "2.3.0"
|
fetch_and_deploy_gh_release "ownfoil" "a1ex4/ownfoil" "tarball"
|
||||||
|
|
||||||
msg_info "Setting up Ownfoil"
|
msg_info "Setting up Ownfoil"
|
||||||
cd /opt/ownfoil
|
cd /opt/ownfoil
|
||||||
|
|||||||
@@ -86,7 +86,13 @@ for arch in "${AGENT_NAME[@]}"; do
|
|||||||
done
|
done
|
||||||
msg_ok "Fetched PatchMon agent binaries"
|
msg_ok "Fetched PatchMon agent binaries"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "ssg-content" "ComplianceAsCode/content" "prebuild" "latest" "/opt/patchmon/ssg-content" "scap-security-guide-*.tar.gz"
|
msg_info "Fetching SCAP Content"
|
||||||
|
RELEASE=$(get_latest_github_release "ComplianceAsCode/content")
|
||||||
|
curl_with_retry "https://github.com/ComplianceAsCode/content/releases/download/v${RELEASE}/scap-security-guide-${RELEASE}.tar.gz" "/tmp/ssg.tar.gz"
|
||||||
|
mkdir -p /opt/patchmon/ssg-content
|
||||||
|
tar -xzf /tmp/ssg.tar.gz -C /opt/patchmon/ssg-content --strip-components=1 --wildcards '*/ssg-*-ds.xml'
|
||||||
|
rm -f /tmp/ssg.tar.gz
|
||||||
|
msg_ok "Fetched SCAP Content"
|
||||||
|
|
||||||
msg_info "Creating service"
|
msg_info "Creating service"
|
||||||
cat <<EOF >/etc/systemd/system/patchmon-server.service
|
cat <<EOF >/etc/systemd/system/patchmon-server.service
|
||||||
|
|||||||
@@ -136,6 +136,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "romm" "rommapp/romm" "tarball"
|
fetch_and_deploy_gh_release "romm" "rommapp/romm" "tarball"
|
||||||
|
fetch_and_deploy_gh_release "ruffle" "ruffle-rs/ruffle" "prebuild" "latest" "/opt/romm/frontend/dist/assets/ruffle" "ruffle-*-web-selfhosted.zip"
|
||||||
|
fetch_and_deploy_gh_release "EmulatorJS" "EmulatorJS/EmulatorJS" "prebuild" "v4.2.3" "/opt/romm/frontend/dist/assets/emulatorjs" "4.2.3.7z"
|
||||||
|
|
||||||
msg_info "Creating environment file"
|
msg_info "Creating environment file"
|
||||||
sed -i 's/^supervised no/supervised systemd/' /etc/redis/redis.conf
|
sed -i 's/^supervised no/supervised systemd/' /etc/redis/redis.conf
|
||||||
@@ -212,9 +214,6 @@ ln -sfn "$ROMM_BASE"/resources /opt/romm/frontend/dist/assets/romm/resources
|
|||||||
ln -sfn "$ROMM_BASE"/assets /opt/romm/frontend/dist/assets/romm/assets
|
ln -sfn "$ROMM_BASE"/assets /opt/romm/frontend/dist/assets/romm/assets
|
||||||
msg_ok "Set up RomM Frontend"
|
msg_ok "Set up RomM Frontend"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "ruffle" "ruffle-rs/ruffle" "prebuild" "latest" "/opt/romm/frontend/dist/assets/ruffle" "ruffle-*-web-selfhosted.zip"
|
|
||||||
fetch_and_deploy_gh_release "EmulatorJS" "EmulatorJS/EmulatorJS" "prebuild" "v4.2.3" "/opt/romm/frontend/dist/assets/emulatorjs" "4.2.3.7z"
|
|
||||||
|
|
||||||
msg_info "Configuring Angie"
|
msg_info "Configuring Angie"
|
||||||
cat <<'EOF' >/etc/angie/http.d/romm.conf
|
cat <<'EOF' >/etc/angie/http.d/romm.conf
|
||||||
upstream romm_backend {
|
upstream romm_backend {
|
||||||
|
|||||||
+3
-3
@@ -2542,7 +2542,7 @@ _deploy_source_tarball() {
|
|||||||
|
|
||||||
mkdir -p "$target"
|
mkdir -p "$target"
|
||||||
if [[ "${CLEAN_INSTALL:-0}" == "1" ]]; then
|
if [[ "${CLEAN_INSTALL:-0}" == "1" ]]; then
|
||||||
find "${target:?}" -mindepth 1 \( -type d -exec mountpoint -q {} \; -prune \) -o -print0 | xargs -0 rm -rf --
|
find "${target:?}" -mindepth 1 \( -type d -exec mountpoint -q {} \; -prune \) -o -delete
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tar --no-same-owner -xzf "$tarball" -C "$workdir" || {
|
tar --no-same-owner -xzf "$tarball" -C "$workdir" || {
|
||||||
@@ -2631,7 +2631,7 @@ _deploy_unpacked_archive() {
|
|||||||
# was truncated, the archive was unreadable, or it unpacked to nothing.
|
# was truncated, the archive was unreadable, or it unpacked to nothing.
|
||||||
mkdir -p "$target"
|
mkdir -p "$target"
|
||||||
if [[ "${CLEAN_INSTALL:-0}" == "1" ]]; then
|
if [[ "${CLEAN_INSTALL:-0}" == "1" ]]; then
|
||||||
find "${target:?}" -mindepth 1 \( -type d -exec mountpoint -q {} \; -prune \) -o -print0 | xargs -0 rm -rf --
|
find "${target:?}" -mindepth 1 \( -type d -exec mountpoint -q {} \; -prune \) -o -delete
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! cp -r "$source_dir"/* "$target/"; then
|
if ! cp -r "$source_dir"/* "$target/"; then
|
||||||
@@ -9372,7 +9372,7 @@ fetch_and_deploy_from_url() {
|
|||||||
mkdir -p "$directory"
|
mkdir -p "$directory"
|
||||||
|
|
||||||
if [[ "${CLEAN_INSTALL:-0}" == "1" ]]; then
|
if [[ "${CLEAN_INSTALL:-0}" == "1" ]]; then
|
||||||
find "${directory:?}" -mindepth 1 \( -type d -exec mountpoint -q {} \; -prune \) -o -print0 | xargs -0 rm -rf --
|
find "${directory:?}" -mindepth 1 \( -type d -exec mountpoint -q {} \; -prune \) -o -delete
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local unpack_tmp
|
local unpack_tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user