Update filebrowser.sh

tweak
pull/930/head
tteckster 2 years ago committed by GitHub
parent 487c46728f
commit 32d9d83bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,14 @@
#!/usr/bin/env bash #!/usr/bin/env bash
function header_info {
cat <<"EOF"
_______ __ ____
/ ____(_) /__ / __ )_________ _ __________ _____
/ /_ / / / _ \/ __ / ___/ __ \ | /| / / ___/ _ \/ ___/
/ __/ / / / __/ /_/ / / / /_/ / |/ |/ (__ ) __/ /
/_/ /_/_/\___/_____/_/ \____/|__/|__/____/\___/_/
EOF
}
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
YW=$(echo "\033[33m") YW=$(echo "\033[33m")
BL=$(echo "\033[36m") BL=$(echo "\033[36m")
@ -28,7 +38,8 @@ function error_exit() {
echo -e "$flag $msg" 1>&2 echo -e "$flag $msg" 1>&2
exit $EXIT exit $EXIT
} }
clear
header_info
while true; do while true; do
read -p "This will Install ${APP} on $hostname. Proceed(y/n)?" yn read -p "This will Install ${APP} on $hostname. Proceed(y/n)?" yn
case $yn in case $yn in
@ -38,20 +49,7 @@ while true; do
esac esac
done done
clear clear
function header_info {
echo -e "${DGN}
______ _ _ ____
| ____(_) | | _ \
| |__ _| | ___| |_) |_ __ _____ _____ ___ _ __
| __| | | |/ _ \ _ <| __/ _ \ \ /\ / / __|/ _ \ __|
| | | | | __/ |_) | | | (_) \ V V /\__ \ __/ |
|_| |_|_|\___|____/|_| \___/ \_/\_/ |___/\___|_|
${CL}"
}
header_info header_info
function msg_info() { function msg_info() {
local msg="$1" local msg="$1"
echo -ne " ${HOLD} ${YW}${msg}..." echo -ne " ${HOLD} ${YW}${msg}..."
@ -63,7 +61,7 @@ function msg_ok() {
} }
msg_info "Installing ${APP}" msg_info "Installing ${APP}"
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash &>/dev/null bash <(curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh) &>/dev/null
filebrowser config init -a '0.0.0.0' &>/dev/null filebrowser config init -a '0.0.0.0' &>/dev/null
filebrowser config set -a '0.0.0.0' &>/dev/null filebrowser config set -a '0.0.0.0' &>/dev/null
filebrowser users add admin changeme --perm.admin &>/dev/null filebrowser users add admin changeme --perm.admin &>/dev/null

Loading…
Cancel
Save

Powered by BW's shoe-string budget.