From f7b3b1e8939e796067760461400d850db4edb682 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 4 Aug 2022 16:20:52 -0400 Subject: [PATCH] Update filebrowser-v3.sh --- misc/filebrowser-v3.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/filebrowser-v3.sh b/misc/filebrowser-v3.sh index e5cdfcf8..81b6c515 100644 --- a/misc/filebrowser-v3.sh +++ b/misc/filebrowser-v3.sh @@ -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"