Changeset 796 in ProjectBuilder for projects/fossology
- Timestamp:
- Jul 2, 2009, 10:19:52 PM (16 years ago)
- Location:
- projects/fossology/pbconf/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified projects/fossology/pbconf/trunk/fossology/rpm/fossology.spec ¶
r795 r796 97 97 98 98 # We suppose that we use the local postgresql installed on the same machine. 99 cat >> /var/lib/pgsql/data/pg_hba.conf << EOF 99 grep -q FOSSology /var/lib/pgsql/data/pg_hba.conf 100 if [ $? -ne 0 ]; then 101 cat >> /var/lib/pgsql/data/pg_hba.conf << EOF 100 102 # Added for FOSSology connection 101 103 # Local connections … … 106 108 EOF 107 109 # Comment previous setup 108 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 109 perl -pi -e 's|(local\s+all\s+all\s+127.0.0.1/32\s+ident\s+sameuser)|#$1|' /var/lib/pgsql/data/pg_hba.conf 110 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 111 perl -pi -e 's|^(local\s+all\s+all\s+127.0.0.1/32\s+ident\s+sameuser)|#$1|' /var/lib/pgsql/data/pg_hba.conf 112 fi 110 113 111 114 # Now restart again postgresql … … 113 116 # in case it wasn't already installed 114 117 /etc/init.d/postgresql restart 115 116 # To avoid fossology setup to fail, leave it time to start117 sleep 3118 118 119 119 # Add apache config for fossology (described in detail in section 2.1.6) - done in install … … 136 136 137 137 # Create logfile to avoid issues later on 138 touch %{_var}/log/PBPROJ138 #touch %{_var}/log/PBPROJ 139 139 # Handle logfile owner correctly 140 chown fossy:fossy %{_var}/log/PBPROJ140 #chown fossy:fossy %{_var}/log/PBPROJ 141 141 142 142 # Test that things are installed correctly -
TabularUnified projects/fossology/pbconf/trunk/pbve.pre ¶
r770 r796 5 5 sudo mkdir -p /dev/shm 6 6 sudo mount tmpfs /dev/shm -t tmpfs -o size=32m 7 # For httpd support and ability to make tests 8 sudo mknod /dev/urandom c 1 9
Note:
See TracChangeset
for help on using the changeset viewer.