diff --git a/nomad/nextcloud/nextcloud-backup.hcl b/nomad/nextcloud/nextcloud-backup.hcl index 6d815f0..316f4ad 100644 --- a/nomad/nextcloud/nextcloud-backup.hcl +++ b/nomad/nextcloud/nextcloud-backup.hcl @@ -5,7 +5,8 @@ job "Nextcloud" { repo = "/local/repo" # Read from secret file # Either options.PasswordFile or using readfile() - passphrase = "secret phrase" + # passphrase = "secret phrase" + passwordFile("tmp/passphrase") } task "Create dir for repo" { diff --git a/nomad/nextcloud/nextcloud.nomad b/nomad/nextcloud/nextcloud.nomad index 7f42e37..95ace17 100644 --- a/nomad/nextcloud/nextcloud.nomad +++ b/nomad/nextcloud/nextcloud.nomad @@ -165,9 +165,9 @@ GRANT ALL ON `{{ .Data.data.db_name }}`.* to '{{ .Data.data.db_user }}'@'%'; template { data = <