You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
modules/filebrowser/run.sh

18 lines
449 B
Bash

#!/usr/bin/env sh
BOLD='\033[0;1m'
echo "$${BOLD}Installing filebrowser..."
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
echo "🥳 Installation comlete!"
echo "👷 Starting filebrowser in background..."
# if FOLDER is ~ then use $HOME
dir="${FOLDER}"
dir="$${dir/#~\//$HOME\/}"
filebrowser --noauth --root $FOLDER --port ${PORT} >/tmp/filebrowser.log >${LOG_PATH} 2>&1 &
echo "check logs at ${LOG_PATH}"