From: Zeljko Boros Date: Mon, 10 May 2021 12:41:44 +0000 (+0200) Subject: Ispravke postinst i pinning X-Git-Tag: debian/11.0.0~6 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-upgrade.git;a=commitdiff_plain;h=11c6b0d3c13b9588c6afeb002f656b31d35e7c82 Ispravke postinst i pinning --- 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 <