blob: 4747c035e6571ad6ce4745a4e9f9d513759cda50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
--- install.sh.orig Sat Dec 21 21:49:54 1996
+++ install.sh Fri Apr 18 15:12:25 1997
@@ -37,11 +37,25 @@
# Set up access defaults.
DIRPERM=755
FILEPERM=644
-BINPERM=6711
+if [ -z "$BINPERM" ]
+then
+ BINPERM=6711
+fi
UMASK=022
OWNER=`expr "$id" : '.*uid=.*(\(.*\)).*gid'`
GROUP=`expr "$id" : '.*gid=[0-9]*(\([a-zA-Z0-9_]*\))'`
-BINOWNER=$OWNER
+if [ -z "$BINOWNER" ]
+then
+ BINOWNER=$OWNER
+fi
+if [ -z "$BINGROUP" ]
+then
+ BINGROUP=$GROUP
+fi
+if [ -z "$INSTALL" ]
+then
+ INSTALL=/usr/bin/install
+fi
USERS=100
LINES=1024
@@ -202,28 +216,12 @@
rm -f $2
fi
- cp $1 $2
+ $INSTALL -c -m $3 -o $4 -g $5 $1 $2
if [ $? != 0 ]
then
logerr -n "Cannot install $2: file copy error."
return 1
fi
-
- if [ -f $2 ]
- then
- if [ $3 != default ]
- then
- chmod $3 $2 2>/dev/null
- fi
- if [ $4 != default ]
- then
- chown $4 $2 2>/dev/null
- fi
- if [ $5 != default ]
- then
- chgrp $5 $2 2>/dev/null
- fi
- fi
return 0
else
$ECHO "\t$2 NOT installed"
@@ -624,7 +622,7 @@
$ECHO "\nInstalling cddbd files..."
# Binaries
-instfile cddbd ${BINDIR}/cddbd $BINPERM $BINOWNER $GROUP
+instfile cddbd ${BINDIR}/cddbd $BINPERM $BINOWNER $BINGROUP
# Configuration files
instfile access `cat .accessfile`/access $FPERM $OWNID $GRPID
|