blob: e4d2d3a9cd0799da64fb19773bba18a4d4f0ed11 (
plain) (
blame)
| 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
70
71
72
73
74
75
76
 | #!/bin/sh
chown -R firebird:firebird $PREFIX/firebird
# Turn everybody to read only.
chmod -R o=r $PREFIX/firebird
# Now fix up the mess.
# fix up directories 
for i in `find $PREFIX/firebird -print`
  do
    FileName=$i
    if [ -d $FileName ]
       then
         chmod o=rx $FileName
     fi
  done
cd $PREFIX/firebird/bin
# all users can run everything.
chmod o=rx * 
# SUID is needed for running server programs.
for i in gds_lock_mgr gds_drop gds_inet_server
  do
    chmod ug+s $i
  done
# Lock files
cd $PREFIX/firebird
for i in isc_init1 isc_lock1 isc_event1 
  do
    FileName=$i.`hostname`
    touch $FileName
    chmod uga=rw $FileName
    chown firebird:firebird $FileName
  done
touch interbase.log
chmod ugo=rw interbase.log
# make databases writable by all
chmod ugo=rw examples/v5/*.gdb
chmod ugo=rw help/*.gdb
chmod ugo=rw isc4.gdb
# remove any existing gds service
sh $SCRIPTDIR/rmservice
# add the gds service and restart inetd
sh $SCRIPTDIR/addservice
kill -HUP `cat /var/run/inetd.pid`
sed "s|%%PREFIX%%|$PREFIX|" $SCRIPTDIR/../pkg-message
cat <<EOF
==========================================================
!! NOTE !!
As there are some oddities to the Firebird build process,
it is likely you WILL NOT BE ABLE TO USE IT until you
remove the semaphore created during the build process.
Please read $PREFIX/firebird/RELNOTES for more information.
==========================================================
EOF
 |