Changeset 764 in ProjectBuilder for projects/fossology/pbconf
- Timestamp:
- Apr 25, 2009, 1:16:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/fossology/pbconf/trunk/fossology/rpm/fossology.spec
r747 r764 173 173 fi 174 174 175 # Check postgresql is running176 LANGUAGE=C /etc/init.d/postgresql status 2>&1 | grep -q stop177 if [ $? -eq 0 ]; then178 /etc/init.d/postgresql start179 fi180 chkconfig --add postgresql181 182 175 cat >> /var/lib/pgsql/data/pg_hba.conf << EOF 183 176 # Added for FOSSology connection … … 193 186 perl -pi -e 's|(host\s+all\s+all\s+127.0.0.1/32\s+ident\s+sameuser)|#$1|' /var/lib/pgsql/data/pg_hba.conf 194 187 195 # reload doesn't seem to work here :-( 196 /etc/init.d/postgresql restart 188 # Check postgresql is running 189 LANGUAGE=C /etc/init.d/postgresql status 2>&1 | grep -q stop 190 if [ $? -eq 0 ]; then 191 /etc/init.d/postgresql start 192 else 193 # Reload doesn't seem to work here 194 /etc/init.d/postgresql restart 195 fi 196 chkconfig --add postgresql 197 197 198 # To avaoid fossology setup to fail, leave it time to start 198 199 sleep 2
Note:
See TracChangeset
for help on using the changeset viewer.