Skip to content

Commit

Permalink
Merge pull request #129 from brokeh/main
Browse files Browse the repository at this point in the history
Make startapp log file location configurable by an env var
  • Loading branch information
Thomas authored Mar 15, 2024
2 parents 649caa8 + 3382501 commit 3d25c59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Environment variables can be set by adding one or more arguments `-e "<VAR>=<VAL
|`VNC_PASSWORD`| Password needed to connect to the application's GUI. See the [VNC Password](#vnc-password) section for more details. | (unset) |
|`X11VNC_EXTRA_OPTS`| Extra options to pass to the x11vnc server running in the Docker container. **WARNING**: For advanced users. Do not use unless you know what you are doing. | (unset) |
|`ENABLE_CJK_FONT`| When set to `1`, open-source computer font `WenQuanYi Zen Hei` is installed. This font contains a large range of Chinese/Japanese/Korean characters. | `0` |
|`STARTUP_LOGFILE`| The location for writing logs of the startup script, responsible for installing and starting the Backblaze app. The default path is also backed up to Backblaze. | `/config/wine/dosdevices/c:/backblaze-wine-startapp.log` |

## Config Directory
Inside the container, wine's configuration and with it Backblaze's configuration is stored in the
Expand Down
2 changes: 1 addition & 1 deletion startapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -x
release_version=$(cat "/RELEASE_VERSION") #backblaze-personal-wine version tag
local_version_file="${WINEPREFIX}dosdevices/c:/ProgramData/Backblaze/bzdata/bzreports/bzserv_version.txt"
install_exe_path="${WINEPREFIX}dosdevices/c:/"
log_file="${WINEPREFIX}dosdevices/c:/backblaze-wine-startapp.log"
log_file="${STARTUP_LOGFILE:-${WINEPREFIX}dosdevices/c:/backblaze-wine-startapp.log}"
custom_user_agent="backblaze-personal-wine/$release_version (JonathanTreffler, +https://github.com/JonathanTreffler/backblaze-personal-wine-container), CFNetwork"

# Extracting variables from the PINNED_VERSION file
Expand Down

0 comments on commit 3d25c59

Please sign in to comment.