X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-upgrade.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=e1f51d8ebfada2176deed4a0bea4c0221b6fa237;hp=dd536da3a807dbae029fed567dc164959565d4ac;hb=11c6b0d3c13b9588c6afeb002f656b31d35e7c82;hpb=5036c2b87817f76ab042593f7160cf36685417f7 diff --git a/debian/postinst b/debian/postinst index dd536da..e1f51d8 100644 --- a/debian/postinst +++ b/debian/postinst @@ -16,7 +16,7 @@ fi # perl se buni ako nema postavljen defaultni locale # stavit cemo en_US.UTF-8 -if [ ! grep -q "^en_US.UTF-8 UTF-8" /etc/locale.gen ]; then +if [ ! $(grep -q "^en_US.UTF-8 UTF-8" /etc/locale.gen) ]; then # generirat cemo najpotrebnije locale (HR, EN, te HR.UTF i EN.UTF8) cp_check_and_sed '# en_US.UTF-8 UTF-8' \ 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' \ @@ -38,11 +38,13 @@ if [ ! grep -q "^en_US.UTF-8 UTF-8" /etc/locale.gen ]; then fi # Ako ima već neki default ne diramo ga -if [ ! -f /etc/default/locale ]; then - cat > /etc/default/locale < /etc/default/locale <