Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions filebrowser/run.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
#!/usr/bin/env bash

BOLD='\033[0;1m'
printf "$${BOLD}Installing filebrowser \n\n"

curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash

printf "🥳 Installation complete! \n\n"
# Check if filebrowser is installed
if command -v filebrowser &> /dev/null; then
printf "🥳 Filebrowser is already installed. Skipping installation.\n\n$"
else
printf "${BOLD}Installing Filebrowser...\n\n"

# Install Filebrowser
if curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash; then
printf "🥳 Installation complete! Filebrowser is now installed.\n\n"
else
printf "❌ Installation failed! Please check the logs.\n\n"
exit 1
fi
fi

printf "👷 Starting filebrowser in background... \n\n"

Expand Down
Loading