watch.sh 553 B

12345678910
  1. #!/bin/bash
  2. while inotifywait -r -e modify ./; do
  3. docker-compose -f compose/karmen/docker-compose.yml down
  4. docker-compose -f compose/karmen/docker-compose.yml up --build -d
  5. echo "Uploading files to the cloud..."
  6. sleep 10
  7. curl -u admin:password http://localhost:8080/remote.php/webdav/Documents/list.tpl.md -X PUT --data-binary @"./generator/generators/list/list.tpl.md"
  8. curl -u admin:password http://localhost:8080/remote.php/webdav/Documents/reference.odt -X PUT --data-binary @"./generator/generators/list/reference.odt"
  9. done