mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-01 13:06:58 +00:00
filebrowser-quantum: strip removed disableIndexing key on update, restart service
This commit is contained in:
@@ -124,6 +124,14 @@ if [[ -f "$INSTALL_PATH" ]]; then
|
||||
if ! command -v curl &>/dev/null; then $STD $PKG_MANAGER curl; fi
|
||||
fetch_and_deploy_gh_release "filebrowser-quantum" "gtsteffaniak/filebrowser" "singlefile" "latest" "/usr/local/bin" "linux-$(arch_resolve)-filebrowser"
|
||||
mv -f /usr/local/bin/filebrowser-quantum "$INSTALL_PATH"
|
||||
if [[ -f "$CONFIG_PATH" ]]; then
|
||||
sed -i '/^\s*disableIndexing:/d' "$CONFIG_PATH"
|
||||
fi
|
||||
if [[ "$OS" == "Debian" ]]; then
|
||||
systemctl restart filebrowser.service
|
||||
else
|
||||
rc-service filebrowser restart
|
||||
fi
|
||||
msg_ok "Updated ${APP}"
|
||||
fi
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user