diff options
-rw-r--r-- | src/core/procedures/interactive | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive index dc4232a..08bdf23 100644 --- a/src/core/procedures/interactive +++ b/src/core/procedures/interactive @@ -120,7 +120,8 @@ worker_configure_system() # /etc/rc.conf # Make sure timezone and utc info are what we want - sed -i -e "s/^TIMEZONE=.*/TIMEZONE=\"$TIMEZONE\"/g" \ + # NOTE: If a timezone string never contains more then 1 slash, we can use ${TIMEZONE/\//\\/} + sed -i -e "s/^TIMEZONE=.*/TIMEZONE=\"${TIMEZONE//\//\\/}\"/g" \ -e "s/^HARDWARECLOCK=.*/HARDWARECLOCK=\"$HARDWARECLOCK\"/g" \ ${var_TARGET_DIR}/etc/rc.conf |