- if [ -f "$ZONE_FILE" ]; then
- if [ -n "$ZONE_INFO_AREA" ]; then
- MESSAGE="`nls 'Setting time zone information (%s, %s)' "$ZONE_INFO_AREA" "$TIME_ZONE"`"
- else
- MESSAGE="`nls 'Setting time zone information (%s)' "$TIME_ZONE"`"
- fi
- run_cmd "$MESSAGE" cp -af $ZONE_FILE /etc/localtime
- RETVAL=$?
- fi
-
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/timezone
+
+ MESSAGE=$(nls 'Setting time zone information (%s)' "$TIMEZONE")
+
+ run_cmd "$MESSAGE" cp -af "$ZONE_FILE" /etc/localtime
+ RETVAL=$?
+ restorecon /etc/localtime >/dev/null 2>&1
+ else
+ show "Missing %s file" "$ZONE_FILE"
+ fail