005_components 486 B

12345678910111213141516
  1. #!/bin/sh
  2. set -e
  3. set -u
  4. echo "Creating components"
  5. psql -c "INSERT INTO component (name, description, meets_dfsg)
  6. VALUES ('main', 'Main', TRUE)" >/dev/null
  7. psql -c "INSERT INTO component (name, description, meets_dfsg)
  8. VALUES ('contrib', 'Contrib', TRUE)" >/dev/null
  9. psql -c "INSERT INTO component (name, description, meets_dfsg)
  10. VALUES ('non-free', 'Software that fails to meet the DFSG', FALSE)" >/dev/null