Changeset 905
- Timestamp:
- 05/22/13 15:30:27 (10 years ago)
- Location:
- branches/1.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/debian/jobmonarch.postinst
r896 r905 12 12 export DB_PASSWD=$(tr -dc A-Za-z0-9_< /dev/urandom |head -c 8 | xargs) 13 13 # Set the password in the SQL script 14 sed -i -e '/^.*modify me:.*$/d' -e 's/^-- CREATE/CREATE/g' -e "s/'';/'$DB_PASSWD';/g" %{_datadir}/jobarchived/job_dbase.sql14 sed -i -e '/^.*modify me:.*$/d' -e 's/^-- ALTER/ALTER/g' -e "s/'';/'$DB_PASSWD';/g" %{_datadir}/jobarchived/job_dbase.sql 15 15 # Set the password in the jobarchived config. 16 16 sed -i -e "s/^#JOB_SQL_PASSWORD.*$/JOB_SQL_PASSWORD\t\t: $DB_PASSWD/g" %{_sysconfdir}/jobarchived.conf -
branches/1.0/jobarchived/job_dbase.sql
r860 r905 1 DROP TABLE jobs CASCADE;2 DROP TABLE nodes CASCADE;3 DROP TABLE job_nodes CASCADE;4 5 1 CREATE TABLE jobs ( 6 2 job_id VARCHAR(20) NOT NULL UNIQUE PRIMARY KEY, … … 28 24 ); 29 25 26 CREATE USER jobarchive; 27 30 28 -- modify me: set a password 31 -- CREATEUSER jobarchive WITH PASSWORD '';29 -- ALTER USER jobarchive WITH PASSWORD ''; 32 30 33 31 GRANT ALL ON jobs,nodes,job_nodes TO "jobarchive"; -
branches/1.0/pkg/rpm/jobmonarch.spec.in
r899 r905 145 145 export DB_PASSWD=$(tr -dc A-Za-z0-9_< /dev/urandom |head -c 8 | xargs) 146 146 # Set the password in the SQL script 147 sed -i -e '/^.*modify me:.*$/d' -e 's/^-- CREATE/CREATE/g' -e "s/'';/'$DB_PASSWD';/g" %{_datadir}/jobarchived/job_dbase.sql147 sed -i -e '/^.*modify me:.*$/d' -e 's/^-- ALTER/ALTER/g' -e "s/'';/'$DB_PASSWD';/g" %{_datadir}/jobarchived/job_dbase.sql 148 148 # Set the password in the jobarchived config. 149 149 sed -i -e "s/^#JOB_SQL_PASSWORD.*$/JOB_SQL_PASSWORD\t\t: $DB_PASSWD/g" %{_sysconfdir}/jobarchived.conf
Note: See TracChangeset
for help on using the changeset viewer.