Skip to content

Commit

Permalink
start-blueos-core: sanitize BLUEOS_DISABLE_SERVICES
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and patrickelectric committed Jan 10, 2025
1 parent 00a01da commit dfeeffc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/start-blueos-core
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ RUN_AS_REGULAR_USER="sudo -u blueos"
# Set BlueOS log folder
BLUEOS_LOG_FOLDER_PATH="/var/logs/blueos"

# Replace spaces with commas in the disabled services list
BLUEOS_DISABLE_SERVICES=${BLUEOS_DISABLE_SERVICES// /,}

# The system may start with full disk, in this case resulting in an unstable behavior.
# As an attempt to recover the system, lets delete the log files before current boot
AVAILABLE_SPACE_MB=$(($(stat -f / --format="%a*%S/1024**2")))
Expand Down

0 comments on commit dfeeffc

Please sign in to comment.