* Style changes.

svn path=/nixos/trunk/; revision=22573
This commit is contained in:
Eelco Dolstra 2010-07-13 09:23:35 +00:00
parent 44656be396
commit 2b7ac80b3d

View File

@ -81,19 +81,20 @@ in
for dir in "$spooldir" "$jobdir" "$etcdir"; do for dir in "$spooldir" "$jobdir" "$etcdir"; do
if [ ! -d "$dir" ]; then if [ ! -d "$dir" ]; then
mkdir -p "$dir" && chown atd:atd "$dir" mkdir -p "$dir"
chown atd:atd "$dir"
fi fi
done done
chmod 1770 "$spooldir" "$jobdir" chmod 1770 "$spooldir" "$jobdir"
${if cfg.allowEveryone then ''chmod a+rwxt "$spooldir" "$jobdir" '' else ""} ${if cfg.allowEveryone then ''chmod a+rwxt "$spooldir" "$jobdir" '' else ""}
if [ ! -f "$etcdir"/at.deny ]; then if [ ! -f "$etcdir"/at.deny ]; then
touch "$etcdir"/at.deny && \ touch "$etcdir"/at.deny
chown root:atd "$etcdir"/at.deny && \ chown root:atd "$etcdir"/at.deny
chmod 640 "$etcdir"/at.deny chmod 640 "$etcdir"/at.deny
fi fi
if [ ! -f "$jobdir"/.SEQ ]; then if [ ! -f "$jobdir"/.SEQ ]; then
touch "$jobdir"/.SEQ && \ touch "$jobdir"/.SEQ
chown atd:atd "$jobdir"/.SEQ && \ chown atd:atd "$jobdir"/.SEQ
chmod 600 "$jobdir"/.SEQ chmod 600 "$jobdir"/.SEQ
fi fi
''; '';