Skip to content

Commit

Permalink
Live patch 3 v9.10
Browse files Browse the repository at this point in the history
- Live patch 3 | Fix PaperMC installation: #7349
  • Loading branch information
MichaIng committed Jan 6, 2025
1 parent ce1d589 commit 107a721
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .update/version
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ G_OLD_DEBIAN_BRANCH='8'
# Live patches
G_LIVE_PATCH_DESC=(
[0]='Fix Sonarr v4 permissions for updater. Only needed if you plan to install or migrate to Sonarr v4 via dietpi-software.'
[1]='Fix install of patches Fail2Ban Dropbear filter: https://github.com/MichaIng/DietPi/issues/7325'
[1]='Fix install of patched Fail2Ban Dropbear filter: https://github.com/MichaIng/DietPi/issues/7325'
[2]='Install patched Fail2Ban Dropbear filter: https://github.com/fail2ban/fail2ban/pull/3597'
[3]='Fix PaperMC installation. Only needed if you plan to install or update PaperMC: https://github.com/MichaIng/DietPi/issues/7349'
)
G_LIVE_PATCH_COND=(
[0]='grep -q '\''^ReadWritePaths=-/usr/lib/sonarr'\'' /boot/dietpi/dietpi-software'
[1]='[[ ! -d /etc/fail2ban/filter.d ]] && grep -q '\''^ G_EXEC mkdir -p /etc/fail2ban/fail2ban.d'\'' /boot/dietpi/dietpi-software'
[1]='[[ ! -d /etc/fail2ban/filter.d ]] && grep -q '\''mkdir -p /etc/fail2ban/fail2ban.d'\'' /boot/dietpi/dietpi-software'
[2]='[[ -d /etc/fail2ban/filter.d && ! -f /etc/fail2ban/filter.d/dropbear.local ]]'
[3]='grep -q '\''papermc.io/api'\'' /boot/dietpi/dietpi-software'
)
# shellcheck disable=SC2016
G_LIVE_PATCH=(
[0]='sed -i '\''s|^ReadWritePaths=-/usr/lib/sonarr|ReadWritePaths=-$install_dir|'\'' /boot/dietpi/dietpi-software'
[1]='sed -i '\''s|^ G_EXEC mkdir -p /etc/fail2ban/fail2ban.d| G_EXEC mkdir -p /etc/fail2ban/{fail2ban,filter}.d|'\'' /boot/dietpi/dietpi-software'
[2]='curl -sSf https://raw.githubusercontent.com/fail2ban/fail2ban/eb8b443/config/filter.d/dropbear.conf -o /etc/fail2ban/filter.d/dropbear.local'
[1]='sed -i '\''s|mkdir -p /etc/fail2ban/fail2ban.d|mkdir -p /etc/fail2ban/{fail2ban,filter}.d|'\'' /boot/dietpi/dietpi-software'
[2]='curl -sSf https://raw.githubusercontent.com/fail2ban/fail2ban/master/config/filter.d/dropbear.conf -o /etc/fail2ban/filter.d/dropbear.local'
[3]='sed -i \''s|papermc.io/api|api.papermc.io|'\'' /boot/dietpi/dietpi-software'
)

0 comments on commit 107a721

Please sign in to comment.