Skip to content

Commit

Permalink
Live patch 0 v9.1 (#6933)
Browse files Browse the repository at this point in the history
- Live patch 0 | Fix Nextcloud Nginx config, serving wrong MIME types
  • Loading branch information
MichaIng authored Feb 21, 2024
1 parent 81b1509 commit 02592a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .conf/dps_114/nginx.nextcloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ location ^~ /nextcloud {

include mime.types;
types {
text/javascript js mjs;
text/javascript mjs;
application/wasm wasm;
}

Expand Down
6 changes: 3 additions & 3 deletions .update/version
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ G_MIN_DEBIAN=6
# Alternative Git branch to automatically migrate to when Debian version is too low
G_OLD_DEBIAN_BRANCH='8'
# Live patches
G_LIVE_PATCH_DESC=()
G_LIVE_PATCH_COND=()
G_LIVE_PATCH=()
G_LIVE_PATCH_DESC=('Fix Nextcloud Nginx config, serving wrong MIME types')
G_LIVE_PATCH_COND=('[[ -f /etc/nginx/sites-dietpi/dietpi-nextcloud.conf ]] && ! grep -q '\''include mime.types;'\'' /etc/nginx/sites-dietpi/dietpi-nextcloud.conf')
G_LIVE_PATCH=('sed -i '\''/types {/i\\tinclude mime.types;'\'' /etc/nginx/sites-dietpi/dietpi-nextcloud.conf; systemctl -q is-active nginx && systemctl restart nginx')

0 comments on commit 02592a3

Please sign in to comment.