1# 2# aegis - project change supervisor 3# Copyright (C) 1998, 2006-2008, 2012 Peter Miller 4# 5# This program is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 3 of the License, or 8# (at your option) any later version. 9# 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License 16# along with this program. If not, see 17# <http://www.gnu.org/licenses/>. 18# 19# @configure_input@ 20# 21comdir=${DESTDIR}@sharedstatedir@ 22libdir=${DESTDIR}@libdir@ 23if test -f $libdir/state -a ! -f $comdir/state 24then 25 echo mv $libdir/state $comdir/state 26 mv $libdir/state $comdir/state 27 if test ! -d $comdir/user/. 28 then 29 mkdir $comdir/user 30 chown @AEGIS_UID@ $comdir/user 31 chgrp @AEGIS_GID@ $comdir/user 32 fi 33 (cd $libdir/. ; find user -type f -print ) | 34 while read f 35 do 36 echo mv $libdir/$f $comdir/$f 37 mv $libdir/$f $comdir/$f 38 done 39fi 40exit 0 41# vim: set ts=8 sw=4 et : 42