mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-23 20:57:17 +02:00
filebrowser-quantum: strip removed disableIndexing key on update, restart service (#16892)
This commit is contained in:
committed by
GitHub
parent
b1edc2722d
commit
cecd3222fc
@@ -124,6 +124,14 @@ if [[ -f "$INSTALL_PATH" ]]; then
|
|||||||
if ! command -v curl &>/dev/null; then $STD $PKG_MANAGER curl; fi
|
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"
|
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"
|
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}"
|
msg_ok "Updated ${APP}"
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user