Update filebrowser/run.sh

Co-authored-by: Muhammad Atif Ali <me@matifali.dev>
pull/286/head
Seppdo 11 months ago committed by GitHub
parent 2c304426e5
commit 1a896e74f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -17,8 +17,8 @@ if [ "${DB_PATH}" != "filebrowser.db" ]; then
DB_FLAG=" -d ${DB_PATH}" DB_FLAG=" -d ${DB_PATH}"
fi fi
# set baseurl if subdomain = false (owner_name and workspace_name is set), else reset to "" for use with subdomain = true # set baseurl if subdomain = false
if [ "${OWNER_NAME}" != "" ] && [ "${WORKSPACE_NAME}" != "" ]; then if [ "${SUBDOMAIN}" == "false" ]; then
filebrowser config set --baseurl "/@${OWNER_NAME}/${WORKSPACE_NAME}.${RESOURCE_NAME}/apps/filebrowser" > ${LOG_PATH} 2>&1 filebrowser config set --baseurl "/@${OWNER_NAME}/${WORKSPACE_NAME}.${RESOURCE_NAME}/apps/filebrowser" > ${LOG_PATH} 2>&1
else else
filebrowser config set --baseurl "" > ${LOG_PATH} 2>&1 filebrowser config set --baseurl "" > ${LOG_PATH} 2>&1

Loading…
Cancel
Save