From: Enrico Scholz Date: Tue, 10 Feb 2004 12:18:22 +0000 (+0000) Subject: moved the 'chattr' into the right %post scriptlet X-Git-Tag: VERSION_0_10~690 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86a4fe51a1bc8d8d179186e42073b76196b7bbe9;p=util-vserver.git moved the 'chattr' into the right %post scriptlet git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@865 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/util-vserver.spec.in b/util-vserver/util-vserver.spec.in index 62f59af..9b37aa2 100644 --- a/util-vserver/util-vserver.spec.in +++ b/util-vserver/util-vserver.spec.in @@ -107,6 +107,8 @@ rm -rf $RPM_BUILD_ROOT f="%confdefaultdir/vdirbase"; test -L "$f" -o -e "$f" || ln -s /vservers "$f" f="%confdefaultdir/run.rev"; test -L "$f" -o -e "$f" || ln -s /var/run/vservers.rev "$f" +%__chattr +t /vservers || : + %define v_services httpd named portmap sendmail smb sshd xinetd %post sysv @@ -117,8 +119,6 @@ for i in %v_services; do /sbin/chkconfig --add v_$i done -%__chattr +t /vservers || : - %preun sysv test "$1" != 0 || for i in %v_services; do