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.
22 lines
564 B
Bash
22 lines
564 B
Bash
#!/usr/bin/env sh
|
|
|
|
BOLD='\033[0;1m'
|
|
echo "$${BOLD}Installing filebrowser \n\n"
|
|
|
|
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
|
|
|
|
echo "🥳 Installation comlete! \n\n"
|
|
|
|
echo "👷 Starting filebrowser in background... \n\n"
|
|
|
|
ROOT_DIR=${FOLDER}
|
|
ROOT_DIR=$${ROOT_DIR/\~/$HOME}
|
|
|
|
echo "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n"
|
|
|
|
echo "Running 'filebrowser --noauth --root $ROOT_DIR --port ${PORT}' \n\n"
|
|
|
|
filebrowser --noauth --root $ROOT_DIR --port ${PORT} >${LOG_PATH} 2>&1 &
|
|
|
|
echo "📝 Logs at ${LOG_PATH} \n\n"
|