From bd024ba03f18d40e864cfec8c6f4afa7e6e37c16 Mon Sep 17 00:00:00 2001 From: fukachan Date: Mon, 26 Feb 2001 02:18:21 +0000 Subject: PROGRAMS validate $owner user --- INSTALL.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/INSTALL.sh b/INSTALL.sh index 2ff15be2..510c60e0 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -77,6 +77,10 @@ cp -pr cpan/lib/* $lib_dir/$fml_version/ echo update $libexec_dir/$fml_version/ cp -pr fml/libexec/* $libexec_dir/$fml_version/ +PROGRAMS="fml.pl distribute command "; +PROGRAMS="$PROGRAMS fmlserv mead fmlconf fmldoc" +PROGRAMS="$PROGRAMS fmlticket fmlticket.cgi" + if [ ! -f $libexec_dir/loader ];then echo install libexec/loader @@ -89,7 +93,7 @@ if [ ! -f $libexec_dir/loader ];then cd $libexec_dir/ echo -n " link loader to: " - for x in fml.pl distribute command fmlserv mead fmlconf fmlticket fmldoc + for x in $PROGRAMS do rm -f $x ln -s loader $x && echo -n "$x " @@ -98,7 +102,15 @@ if [ ! -f $libexec_dir/loader ];then ) fi -if [ -d $ml_spool_dir ]; then +iam=`id -un` + +if [ "X$iam" != Xroot ];then + exit 1 +fi + +id -un $owner || exit 1 + +if [ -d $ml_spool_dir -a -w $ml_spool_dir ]; then echo set up the owner of $ml_spool_dir to be $owner chown -R $owner $ml_spool_dir fi -- cgit v1.2.1