#! /bin/sh
set -e
LC_ALL=C
LANG=C
unset TZ
umask 022
. /usr/share/debconf/confmodule
db_version 2.0
if [ "$1" = configure ]; then
# If the user prefers to manage the timezone by itself, let him
doing that.
if ! [ -e /etc/timezone ] && [ -z "$DEBCONF_RECONFIGURE" ] ; then
db_stop
echo
echo "User defined timezone, leaving /etc/localtime unchanged."
else
# Get the values from debconf
AREA=Etc
ZONE=UTC
db_get tzdata/Areas && AREA="$RET"
db_get tzdata/Zones/$AREA && ZONE="$RET"
db_stop
# Update the timezone
echo $AREA/$ZONE > /etc/timezone
rm -f /etc/localtime && \
cp -f /usr/share/zoneinfo/$AREA/$ZONE /etc/localtime
which restorecon >/dev/null 2>&1 && restorecon /etc/localtime
echo
echo "Current default timezone: '$AREA/$ZONE'"
fi
# Show the new setting to the user
TZBase=$(LC_ALL=C TZ=UTC0 date)
UTdate=$(LC_ALL=C TZ=UTC0 date -d "$TZBase")
TZdate=$(unset TZ ; LANG=C date -d "$TZBase")
echo "Local time is now: $TZdate."
echo "Universal Time is now: $UTdate."
if [ -z "$DEBCONF_RECONFIGURE" ] ; then
echo "Run 'dpkg-reconfigure tzdata' if you wish to change it."
fi
echo
fi
exit 0
Martin Pitt wrote:
> That looks weird. Can you please attach
> /var/lib/dpkg/info/tzdata.postinst here to ensure that it isn't
> corrupted, and give me the output of
>
> ls -l /bin/sh
>
> here? It should be
>
> rwxrwxrwx 1 root root 4 2009-07-31 20:56 /bin/sh -> dash
>
> (different date is fine, of course)
>
> Thanks!
>
>
--
package tzdata 2009l-0ubuntu0.9.04 failed to install/upgrade: subprocess
post-installation script returned error exit status 1
https://bugs.launchpad.net/bugs/424318
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs