Skip to content

Commit dfeeffc

Browse files
Williangalvanipatrickelectric
authored andcommitted
start-blueos-core: sanitize BLUEOS_DISABLE_SERVICES
1 parent 00a01da commit dfeeffc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/start-blueos-core

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ RUN_AS_REGULAR_USER="sudo -u blueos"
2121
# Set BlueOS log folder
2222
BLUEOS_LOG_FOLDER_PATH="/var/logs/blueos"
2323

24+
# Replace spaces with commas in the disabled services list
25+
BLUEOS_DISABLE_SERVICES=${BLUEOS_DISABLE_SERVICES// /,}
26+
2427
# The system may start with full disk, in this case resulting in an unstable behavior.
2528
# As an attempt to recover the system, lets delete the log files before current boot
2629
AVAILABLE_SPACE_MB=$(($(stat -f / --format="%a*%S/1024**2")))

0 commit comments

Comments
 (0)