wok diff locale-zh_CN/receipt @ rev 13610

Up remmina (1.0.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 12 17:45:50 2012 +0100 (2012-11-12)
parents e63d22f12936
children 919b102812ab
line diff
     1.1 --- a/locale-zh_CN/receipt	Mon May 30 00:54:30 2011 +0200
     1.2 +++ b/locale-zh_CN/receipt	Mon Nov 12 17:45:50 2012 +0100
     1.3 @@ -42,16 +42,20 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	echo LANG=zh_CN.UTF-8 > /etc/locale.conf
     1.8 -	echo Asia/Shanghai > /etc/TZ
     1.9 -	export TZ=Asia/Shanghai
    1.10 -	hwclock --hctosys
    1.11 +	if [ -z "$1" ]; then
    1.12 +		echo LANG=zh_CN.UTF-8 > /etc/locale.conf
    1.13 +		echo Asia/Shanghai > /etc/TZ
    1.14 +		export TZ=Asia/Shanghai
    1.15 +		hwclock --hctosys
    1.16 +	fi
    1.17  }
    1.18  
    1.19  # Back to C if it's the last used locale.
    1.20  post_remove()
    1.21  {
    1.22 -	if grep -q $LOCALEDEF /etc/locale.conf; then
    1.23 -		echo "LANG=C" > /etc/locale.conf
    1.24 +	if [ -z "$1" ]; then
    1.25 +		if [ $(grep -q $LOCALEDEF /etc/locale.conf) ]; then
    1.26 +			echo "LANG=C" > /etc/locale.conf
    1.27 +		fi
    1.28  	fi
    1.29  }