#!/bin/sh
# NOTE: Only install this package if necessary

# 1/ check if the version file exist
if ! test -f /usr/share/zoneinfo/.version ; then
  exit 0
fi

# 2/ check if the version file is older
if expr "$(cat $ROOTDIR/rootfs/tmp/tzdata/version)" \> "$(cat /usr/share/zoneinfo/.version)" ; then 
  exit 0
fi

# Skip installation
exit 1
