util-vserver.postinst (471B)
1 #!/bin/sh 2 3 test -d /vservers || mkdir -m0000 /vservers 4 test -d /vservers/.pkg || mkdir -m0755 /vservers/.pkg 5 6 f="/etc/vservers/.defaults/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f" 7 f="/etc/vservers/.defaults/run.rev"; test -L "$f" -o -e "$f" || ln -s /var/run/vservers.rev "$f" 8 f="/etc/vservers/.defaults/cachebase"; test -L "$f" -o -e "$f" || ln -s /var/cache/vservers "$f" 9 10 /usr/sbin/setattr --barrier /vservers /vservers/.pkg || :