Cron with interval 1 second, yaml based configs http://gogocron.blindage.org/
go
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 467B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. VERSION="1.0"
  3. # build gogocron
  4. go build
  5. # prepage control file
  6. sed -i "s/Version.*/Version: ${VERSION}/" ./debian/DEBIAN/control
  7. # copy files to deb package structure
  8. mkdir -p ./debian/etc/gogocron
  9. mkdir -p ./debian/usr/bin
  10. mkdir -p ./debian/usr/share/gogocron/samples/
  11. mkdir -p ./debian/DEBIAN
  12. cp gogocron ./debian/usr/bin/
  13. cp configs/*.yml ./debian/usr/share/gogocron/samples/
  14. # build deb package
  15. dpkg-deb --build debian gogocron-${VERSION}.deb