From ebf4465f22cbb7c59377f855f96a6561ed99870a Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 20 Jan 2007 13:33:30 +0000 Subject: Make sure QUOTASOFT and QUOTAHARD is defined always. Fix indentation of setquota command. --- user-init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'user-init') diff --git a/user-init b/user-init index 6f8ffe2..b87681f 100755 --- a/user-init +++ b/user-init @@ -44,6 +44,9 @@ server_root="server" server_conf="/etc/security/pam_mount.conf" server_userconf=".winpassword" +QUOTASOFT="0" +QUOTAHARD="0" + ### No servicable parts below this line! ### if [ -e /etc/adduser.conf ]; then @@ -116,7 +119,7 @@ for user in $USERS; do done for quotahome in $QUOTAHOMES; do if [ -n "$NEW_QUOTA" ]; then - setquota "$user" "$quotasoft" "$quotahard" 0 0 "$quotahome" + setquota "$user" "$quotasoft" "$quotahard" 0 0 "$quotahome" else setquota "$user" "$quotahome" "$quotasoft" "$quotahard" 0 0 fi -- cgit v1.2.3