1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-03-08 13:19:05 +00:00

Update filebrowser.sh

This commit is contained in:
CanbiZ 2025-02-10 15:46:10 +01:00 committed by GitHub
parent 1c808b95a8
commit a1dd57ded6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ INFO="${BL}${CL}"
APP="FileBrowser" APP="FileBrowser"
INSTALL_PATH="/usr/local/bin/filebrowser" INSTALL_PATH="/usr/local/bin/filebrowser"
SERVICE_PATH="/etc/systemd/system/filebrowser.service" SERVICE_PATH="/etc/systemd/system/filebrowser.service"
DB_PATH="/root/filebrowser.db" DB_PATH="/var/lib/filebrowser/filebrowser.db"
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
header_info header_info
@ -52,6 +52,7 @@ if [ -f "$INSTALL_PATH" ]; then
msg_info "Uninstalling ${APP}" msg_info "Uninstalling ${APP}"
systemctl disable -q --now filebrowser.service systemctl disable -q --now filebrowser.service
rm -f "$INSTALL_PATH" "$DB_PATH" "$SERVICE_PATH" rm -f "$INSTALL_PATH" "$DB_PATH" "$SERVICE_PATH"
msg_ok "${APP} has been uninstalled." msg_ok "${APP} has been uninstalled."
exit 0 exit 0
fi fi