Update filebrowser-v3.sh

This commit is contained in:
tteckster 2022-08-04 16:20:52 -04:00 committed by GitHub
parent 69eeaaee2a
commit f7b3b1e893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
APP="FileBrowser"
hostname="$(hostname)"
set -o errexit
set -o errtrace
set -o nounset
@ -29,7 +30,7 @@ function error_exit() {
}
while true; do
read -p "This will Install ${APP}. Proceed(y/n)?" yn
read -p "This will Install ${APP} on $hostname. Proceed(y/n)?" yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
@ -66,7 +67,7 @@ curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bas
filebrowser config init -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
msg_ok "Installed ${APP}"
msg_ok "Installed ${APP} on $hostname"
msg_info "Creating Service"
service_path="/etc/systemd/system/filebrowser.service"