diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-18 19:35:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-18 19:40:28 +0000 |
commit | ea29b6c763a3695595c1a6aa0c614e4127019817 (patch) | |
tree | ba92262a5a7a6d53829abc842b26cc5b875d2c9c /setup-timezone.in | |
parent | 10480664171a28d0b64670f4941bdc32e8a355ee (diff) | |
download | alpine-conf-ea29b6c763a3695595c1a6aa0c614e4127019817.zip |
setup-timezone: add test
Make it testable
Diffstat (limited to 'setup-timezone.in')
-rw-r--r-- | setup-timezone.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setup-timezone.in b/setup-timezone.in index 2a17848..0ee83eb 100644 --- a/setup-timezone.in +++ b/setup-timezone.in @@ -4,7 +4,7 @@ PREFIX=@PREFIX@ : ${LIBDIR=$PREFIX/lib} . "$LIBDIR/libalpine.sh" -zroot=/usr/share/zoneinfo +zroot="$ROOT"/usr/share/zoneinfo usage() { cat <<-__EOF__ @@ -83,7 +83,7 @@ else apkdel=".setup-timezone" fi -apk add --quiet $pkg +$MOCK apk add --quiet $pkg if [ -L "${ROOT}"etc/zoneinfo/localtime ]; then default_timezone=$(readlink "${ROOT}"etc/zoneinfo/localtime) @@ -124,5 +124,5 @@ while true; do done if [ -n "$apkdel" ]; then - apk del --quiet $apkdel + $MOCK apk del --quiet $apkdel fi |