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.
21 lines
483 B
Bash
21 lines
483 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
|
|
if [ "${FOLDER}" = "~" ]; then
|
|
FOLDER=$HOME
|
|
else
|
|
FOLDER=${FOLDER}
|
|
fi
|
|
filebrowser --noauth --root $FOLDER --port ${PORT} >/tmp/filebrowser.log >${LOG_PATH} 2>&1 &
|
|
|
|
echo "check logs at ${LOG_PATH}"
|