summaryrefslogtreecommitdiff
path: root/www/wwwcount/files/patch-ae
blob: adc106e86bce5ce71130d00755eb539169edb103 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
*** Count-install.orig	Fri May  3 06:20:31 1996
--- Count-install	Fri Sep  6 18:05:28 1996
***************
*** 193,199 ****
  
  if [ .$answer = . ]
  then
!     answer=x
  fi
      until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
      do
--- 193,199 ----
  
  if [ .$answer = . ]
  then
!     answer=y
  fi
      until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
      do
***************
*** 233,239 ****
     read answer
     if [ .$answer = . ]
     then
!         answer=x
     fi   
     until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
     do
--- 233,239 ----
     read answer
     if [ .$answer = . ]
     then
! 	answer=y
     fi   
     until [ $answer = "y" -o $answer = "Y" -o $answer = "n" -o $answer = "N" ]
     do
***************
*** 252,262 ****
  ###
  # enter user id -starts
  ###
!    echo $n "*Enter user id of httpd's child process [no default]:$c? "
     read answer
     if [ .$answer = . ]
     then 
!         answer=x
     fi
     until [ $answer != "x" ]
     do
--- 252,262 ----
  ###
  # enter user id -starts
  ###
!    echo $n "*Enter user id of httpd's child process [nobody]:$c? "
     read answer
     if [ .$answer = . ]
     then 
! 	answer=nobody
     fi
     until [ $answer != "x" ]
     do
***************
*** 276,286 ****
  ##
  # enter groud id -starts
  ##
!    echo $n "*Enter group id of httpd's child process [no default]:$c? "
     read answer
     if [ .$answer = . ]
     then 
!         answer=x
     fi
     until [ $answer != "x" ]
     do
--- 276,286 ----
  ##
  # enter groud id -starts
  ##
!    echo $n "*Enter group id of httpd's child process [nogroup]:$c? "
     read answer
     if [ .$answer = . ]
     then 
! 	answer=nogroup
     fi
     until [ $answer != "x" ]
     do
***************
*** 298,318 ****
  # enter groud id -ends
  ##
  echo "installing Count.cgi->$CGIBIN_DIR"
! $INSTALL_PROG -c -o $UserId -g $GroupId -m 755 ./Count.cgi $CGIBIN_DIR/Count.cgi
  echo "installing $CONFIG_FILE->$CONFIG_DIR"
  $INSTALL_PROG -c -o $UserId -g $GroupId -m 664 $CONFIG_FILE $CONFIG_DIR/$CONFIG_FILE
  echo "installing sample datafile $SAMPLE_DAT->$DATA_DIR"
  $INSTALL_PROG -c -o $UserId -g $GroupId -m 664 $SAMPLE_DAT $DATA_DIR/sample.dat
  chmod 775 $DATA_DIR
  
! echo "installing rgb.txt->$BASE_DIR"
! $INSTALL_PROG -c -o $UserId -g $GroupId -m 644 $Rgbfile $BASE_DIR/rgb.txt
  
! echo "creating Log directory $LOG_DIR"
! ./mkdirhier $LOG_DIR
! chown $UserId $LOG_DIR
! chgrp $GroupId $LOG_DIR
! chmod 775 $LOG_DIR
  
  echo "installing image strip for digit style A->$DIGIT_DIR/A"
  $INSTALL_PROG -c -o $UserId -g $GroupId -m 644 $DigitA/strip.gif\
--- 298,317 ----
  # enter groud id -ends
  ##
  echo "installing Count.cgi->$CGIBIN_DIR"
! $INSTALL_PROG -s -c -o $UserId -g $GroupId -m 755 ./Count.cgi $CGIBIN_DIR/Count.cgi
  echo "installing $CONFIG_FILE->$CONFIG_DIR"
  $INSTALL_PROG -c -o $UserId -g $GroupId -m 664 $CONFIG_FILE $CONFIG_DIR/$CONFIG_FILE
  echo "installing sample datafile $SAMPLE_DAT->$DATA_DIR"
  $INSTALL_PROG -c -o $UserId -g $GroupId -m 664 $SAMPLE_DAT $DATA_DIR/sample.dat
  chmod 775 $DATA_DIR
  
! echo "installing rgb.txt->$RGB_DIR"
! $INSTALL_PROG -c -o $UserId -g $GroupId -m 644 $Rgbfile $RGB_DIR/rgb.txt
  
! echo "installing $LOG_FILE->$LOG_DIR"
! touch $LOG_DIR/$LOG_FILE
! chmod 644 $LOG_DIR/$LOG_FILE
! chown $UserId.$GroupId $LOG_DIR/$LOG_FILE
  
  echo "installing image strip for digit style A->$DIGIT_DIR/A"
  $INSTALL_PROG -c -o $UserId -g $GroupId -m 644 $DigitA/strip.gif\
***************
*** 344,349 ****
--- 343,350 ----
  #chown -R $UserId.$GroupId $BASE_DIR
  find $BASE_DIR -exec chown $UserId {} \;
  find $BASE_DIR -exec chgrp $GroupId {} \;
+ find $LIB_DIR -exec chown $UserId {} \;
+ find $LIB_DIR -exec chgrp $GroupId {} \;
  #            echo "UserId=$UserId"
  #            echo "GroupId=$GroupId"
          ;;
***************
*** 358,374 ****
  
  EOM
  echo "installing Count.cgi->$CGIBIN_DIR"
! $INSTALL_PROG -c -m 755 ./Count.cgi $CGIBIN_DIR/Count.cgi
  echo "installing $CONFIG_FILE->$CONFIG_DIR"
  $INSTALL_PROG -c $CONFIG_FILE $CONFIG_DIR/$CONFIG_FILE
  echo "installing sample datafile $SAMPLE_DAT->$DATA_DIR"
  $INSTALL_PROG -c $SAMPLE_DAT $DATA_DIR/sample.dat
  
! echo "installing rgb.txt->$BASE_DIR"
! $INSTALL_PROG -c $Rgbfile $BASE_DIR/rgb.txt
  
! echo "creating Log directory $LOG_DIR"
! ./mkdirhier $LOG_DIR
  
  echo "installing image strip for digit style A->$DIGIT_DIR/A"
  $INSTALL_PROG -c $DigitA/strip.gif $DIGIT_DIR/A/strip.gif
--- 359,376 ----
  
  EOM
  echo "installing Count.cgi->$CGIBIN_DIR"
! $INSTALL_PROG -s -c -m 755 ./Count.cgi $CGIBIN_DIR/Count.cgi
  echo "installing $CONFIG_FILE->$CONFIG_DIR"
  $INSTALL_PROG -c $CONFIG_FILE $CONFIG_DIR/$CONFIG_FILE
  echo "installing sample datafile $SAMPLE_DAT->$DATA_DIR"
  $INSTALL_PROG -c $SAMPLE_DAT $DATA_DIR/sample.dat
  
! echo "installing rgb.txt->$RGB_DIR"
! $INSTALL_PROG -c $Rgbfile $RGB_DIR/rgb.txt
  
! echo "installing $LOG_FILE->$LOG_DIR"
! touch $LOG_DIR/$LOG_FILE
! chmod 644 $LOG_DIR/$LOG_FILE
  
  echo "installing image strip for digit style A->$DIGIT_DIR/A"
  $INSTALL_PROG -c $DigitA/strip.gif $DIGIT_DIR/A/strip.gif