summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-02-26 02:18:21 +0000
committerfukachan <fukachan>2001-02-26 02:18:21 +0000
commitbd024ba03f18d40e864cfec8c6f4afa7e6e37c16 (patch)
tree3b7112365fe94f950b5dbd905d77e8edf3a6d312
parent422951710b2b5b4341c4d1c0b2a73bea4e444756 (diff)
downloadfml8-bd024ba03f18d40e864cfec8c6f4afa7e6e37c16.tar.gz
fml8-bd024ba03f18d40e864cfec8c6f4afa7e6e37c16.tar.bz2
fml8-bd024ba03f18d40e864cfec8c6f4afa7e6e37c16.zip
PROGRAMS
validate $owner user
-rwxr-xr-xINSTALL.sh16
1 files 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