SOSDG Spam Assassin Rules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.sh 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. VERSION=36
  3. TAR=`which tar`
  4. MYSQL=`which mysql`
  5. EPOCH=`date +%s`
  6. TARBALL="${VERSION}.tar.gz"
  7. SHA1SUM=`which sha1sum`
  8. DNSUSER="brielle"
  9. DNSDOMAIN="*.3.sa.sosdg.org"
  10. DNSDB="ns1-powerdns"
  11. DNSTABLE="records"
  12. ${TAR} zvcf ../../${TARBALL} --exclude-vcs --exclude='*.sh' * ;\
  13. cd ../../
  14. ${SHA1SUM} ${TARBALL} > ${TARBALL}.sha1
  15. #echo -n "Mysql password: "
  16. #stty -echo
  17. #read password
  18. #stty echo
  19. #DNSSOA=`echo "SELECT content FROM ${DNSTABLE} WHERE domain_id='4'
  20. # AND name='sosdg.org' AND type='SOA'" |\
  21. # ${MYSQL} --user=${DNSUSER} --password=$password ${DNSDB}`
  22. #DNSSOA2=( ${DNSSOA// / } )
  23. #NEW_SOA="${DNSSOA2[1]} ${DNSSOA2[2]} $((${DNSSOA2[3]}+1)) ${DNSSOA2[4]} ${DNSSOA2[5]} ${DNSSOA2[6]} ${DNSSOA2[7]}"
  24. #echo "UPDATE ${DNSTABLE} SET content='${VERSION}', change_date='${EPOCH}'
  25. # WHERE name='${DNSDOMAIN}' AND type='TXT'" |\
  26. # ${MYSQL} --user=${DNSUSER} --password=$password ${DNSDB}
  27. #
  28. #echo "UPDATE ${DNSTABLE} SET content='${NEW_SOA}', change_date='${EPOCH}'
  29. # WHERE domain_id='4' AND name='sosdg.org' AND type='SOA'" |\
  30. # ${MYSQL} --user=${DNSUSER} --password=$password ${DNSDB}
  31. #unset password