~ubuntu-branches/ubuntu/lucid/vzctl/lucid

« back to all changes in this revision

Viewing changes to etc/dists/scripts/postcreate.sh

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2008-01-27 10:24:49 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080127102449-ivjpirh4dyshc0cl
Tags: 3.0.22-3
Correction for #459717. Thanks to eyck <eyck.debian@kuszelas.eu> for the
report.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                line = line " "  ar[i];
61
61
        }
62
62
        print line;
63
 
 
63
}
64
64
' > ${file}.$$ && /bin/mv -f ${file}.$$ ${file}
65
65
        /bin/rm -f ${file}.$$ 2>/dev/null
66
66
}
72
72
        [ -f "$file" ] || return 0
73
73
 
74
74
        if /bin/grep -q "^root::" "${file}" 2>/dev/null; then
75
 
                /bin/sed 's/^root::/root:!!:/g' < ${file} > ${file}.$$ && \
 
75
                /bin/sed 's/^root::/root:!!:/g' < ${file} > ${file}.$$ &&
76
76
                        /bin/mv -f ${file}.$$ ${file}
77
77
                /bin/rm -f ${file}.$$ 2>/dev/null
78
78
        fi
79
79
}
80
80
 
81
81
[ -z "${VE_ROOT}" ] && return 1
82
 
randcrontab 
 
82
randcrontab
83
83
disableroot
84
84
 
85
85
exit 0