c4k-forgejo/infrastructure/backup/image/resources/wait.bb

20 lines
371 B
BlitzBasic
Raw Normal View History

2024-08-23 08:45:43 +02:00
#!/usr/bin/env bb
(require
'[dda.backup.core :as bc]
2025-01-13 16:04:12 +01:00
'[dda.backup.config :as cfg]
2024-08-23 08:45:43 +02:00
'[dda.backup.postgresql :as pg])
2025-01-13 16:04:12 +01:00
(def config (cfg/read-config "/usr/local/bin/config.edn"))
2024-08-23 08:45:43 +02:00
(defn prepare!
[]
2025-01-13 16:04:12 +01:00
(bc/create-aws-credentials! (:aws-config config))
(pg/create-pg-pass! (:db-config config)))
2024-08-23 08:45:43 +02:00
(defn wait! []
(while true
(Thread/sleep 1000)))
(prepare!)
2025-01-13 16:04:12 +01:00
(wait!)