add filebrowser (#56)
This commit is contained in:
committed by
GitHub
parent
c3d8a9949c
commit
59243bdf23
21
filebrowser/run.sh
Normal file
21
filebrowser/run.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user