Fix typo
This commit is contained in:
parent
a93c34405f
commit
e2eaf98653
2 changed files with 7 additions and 2 deletions
nixos/common
|
@ -9,12 +9,12 @@ in {
|
|||
|
||||
# SSH key for btrfs-backups
|
||||
sops.secrets."btrfs-backups/ssh_key" = {
|
||||
sopsFile = ../../../../secrets/secrets.yaml;
|
||||
sopsFile = ../../../secrets/secrets.yaml;
|
||||
owner = "root";
|
||||
};
|
||||
|
||||
sops.secrets."btrfs-backups/gotify_token" = {
|
||||
sopsFile = ../../../../secrets/secrets.yaml;
|
||||
sopsFile = ../../../secrets/secrets.yaml;
|
||||
owner = "root";
|
||||
};
|
||||
|
||||
|
|
|
@ -102,6 +102,11 @@ if [ ! -r "/run/secrets/btrfs-backups/gotify_token" ]; then
|
|||
echo "ERROR: Gotify token file not found or not readable at /run/secrets/btrfs-backups/gotify_token"
|
||||
exit 1
|
||||
fi
|
||||
# Check if secrets file exists and is readable
|
||||
if [ ! -r "/run/secrets/btrfs-backups/ssh_key" ]; then
|
||||
echo "ERROR: SSH Key not found or not readable at /run/secrets/btrfs-backups/ssh_key"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Gotify Configuration
|
||||
GOTIFY_URL="https://gotify.sysctl.io"
|
||||
|
|
Loading…
Add table
Reference in a new issue