Let symlinks be in the installed set of files ; make symlink from /var/log to

/usr/log.
This commit is contained in:
Ben Gras 2006-01-25 13:00:14 +00:00
parent 20add6baa2
commit 23bcf287cb
4 changed files with 6 additions and 1 deletions

View file

@ -8,4 +8,6 @@ news:*:6:
ftp:*:7:
kmem:*:8:
www:*:9:
driver:*:10:
server:*:11:
nogroup:*:99:

View file

@ -1,4 +1,4 @@
#!/bin/sh
cat $1 | while read line
do echo $line | awk '{ print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" }' | sh || exit 1
do echo $line | awk 'NF==4 { print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" } NF==3 { print "rm "$1" ; ln -s "$3" "$1" || exit 1" } ' | sh || exit 1
done

View file

@ -69,6 +69,7 @@
755 bin operator /usr/src
1777 root operator /usr/tmp
755 root operator /var
/var/log -> /usr/log
755 root operator /usr/log
755 root operator /var/run
755 bin operator /usr/gnu/

View file

@ -6,4 +6,6 @@ news:*:6:6:Usenet news:/usr/spool/news:
ftp:*:7:7:Anonymous FTP:/usr/ftp:
ast:*:8:3:Andrew S. Tanenbaum:/home/ast:
www:*:9:9:World Wide Web:/usr/www:
driver:*:10:10:Device Drivers:/:
server:*:11:11:OS Servers:/:
nobody:*:9999:99::/tmp: