fixed sh ref

This commit is contained in:
Stephen Kirby
2023-10-05 22:27:00 +00:00
parent 290db2ea33
commit e9bf7245bb
3 changed files with 16 additions and 5 deletions

View File

@@ -12,10 +12,8 @@ printf "👷 Starting filebrowser in background... \n\n"
ROOT_DIR=${FOLDER}
ROOT_DIR=$${ROOT_DIR/\~/$HOME}
# Set the database flag if DB_PATH is set
DB_FLAG=""
if [ "${DB_PATH}" != "filebrowser.db" ]; then
echo ">>> flag set!"
DB_FLAG="-d ${DB_PATH}"
fi
@@ -23,6 +21,6 @@ printf "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n"
printf "Running 'filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG}' \n\n" # -d ${DB_PATH}
filebrowser --noauth --root $ROOT_DIR --port ${PORT}${DB_FLAG} >${LOG_PATH} 2>&1 & # -d ${DB_PATH}
filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG} >${LOG_PATH} 2>&1 & # -d ${DB_PATH}
printf "📝 Logs at ${LOG_PATH} \n\n"