From d8169fd2141aaa0e3675130d1d06616df4373c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?La=C3=A9rcio=20de=20Sousa?= Date: Fri, 23 Oct 2015 08:01:18 -0200 Subject: Drop local keyword, as it may break guest-account.sh. See LP #139097. --- debian/guest-account.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/guest-account.sh b/debian/guest-account.sh index dc46e2f9..787325c0 100644 --- a/debian/guest-account.sh +++ b/debian/guest-account.sh @@ -20,9 +20,9 @@ fi is_system_user () { - local UID_MIN=$(cat /etc/login.defs | grep UID_MIN | awk '{print $2}') - local SYS_UID_MIN=$(cat /etc/login.defs | grep SYS_UID_MIN | awk '{print $2}') - local SYS_UID_MAX=$(cat /etc/login.defs | grep SYS_UID_MAX | awk '{print $2}') + UID_MIN=$(cat /etc/login.defs | grep UID_MIN | awk '{print $2}') + SYS_UID_MIN=$(cat /etc/login.defs | grep SYS_UID_MIN | awk '{print $2}') + SYS_UID_MAX=$(cat /etc/login.defs | grep SYS_UID_MAX | awk '{print $2}') SYS_UID_MIN=${SYS_UID_MIN:-101} SYS_UID_MAX=${SYS_UID_MAX:-$(( UID_MIN - 1 ))} @@ -32,7 +32,7 @@ is_system_user () add_account () { - local temp_home=$(mktemp -td guest-XXXXXX) + temp_home=$(mktemp -td guest-XXXXXX) HOME=$(echo ${temp_home} | tr '[:upper:]' '[:lower:]') USER=$(echo ${HOME} | sed 's/\(.*\)guest/guest/') [ ${HOME} != ${temp_home} ] && mv ${temp_home} ${HOME} -- cgit v1.2.1