diff options
| author | fukachan <fukachan> | 2001-02-26 02:18:21 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-02-26 02:18:21 +0000 |
| commit | bd024ba03f18d40e864cfec8c6f4afa7e6e37c16 (patch) | |
| tree | 3b7112365fe94f950b5dbd905d77e8edf3a6d312 | |
| parent | 422951710b2b5b4341c4d1c0b2a73bea4e444756 (diff) | |
| download | fml8-bd024ba03f18d40e864cfec8c6f4afa7e6e37c16.tar.gz fml8-bd024ba03f18d40e864cfec8c6f4afa7e6e37c16.tar.bz2 fml8-bd024ba03f18d40e864cfec8c6f4afa7e6e37c16.zip | |
PROGRAMS
validate $owner user
| -rwxr-xr-x | INSTALL.sh | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 |
