From f33294fedc7be3f98d90f2c10ba4001920ce9e9f Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Tue, 26 Dec 2023 15:24:51 -0800 Subject: [PATCH] to string cast --- hosts/Alaska/modules/backup_script.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/Alaska/modules/backup_script.nix b/hosts/Alaska/modules/backup_script.nix index e7116dc..f316c41 100644 --- a/hosts/Alaska/modules/backup_script.nix +++ b/hosts/Alaska/modules/backup_script.nix @@ -139,7 +139,7 @@ in mount /dev/disk/by-label/${cfg.backup1_drive_label} ${builtins.toString cfg.tmp_mount_point} -t ntfs3 #------ BEGIN NEXTCLOUD - if [ "${cfg.nextcloud.enable}" = true ]; then + if [ "${builtins.toString cfg.nextcloud.enable}" = true ]; then echo "Putting nextcloud into maintenance mode so that changes cannot happen during the backup" nextcloud-occ maintenance:mode --on @@ -163,7 +163,7 @@ in #---- END NEXTCLOUD #---- BEGIN FORGEJO - if [ "${cfg.forgejo.enable}" = true ]; then + if [ "${builtins.toString cfg.forgejo.enable}" = true ]; then echo "deleting old Forgejo backups" find ${builtins.toString cfg.tmp_mount_point}/Forgejo -type f -printf '%T+ %p\n'\ | sort | head -n -${builtins.toString cfg.forgejo.save_old_count}\ @@ -184,7 +184,7 @@ in #----- END FORGEJO #----- BEGIN VAULTWARDEN - if [ "${cfg.vaultwarden.enable}" = true]; then + if [ "${builtins.toString cfg.vaultwarden.enable}" = true]; then rsync -av ${cfg.vaultwarden.backup_dir} ${builtins.toString cfg.tmp_mount_point}/Vaultwarden fi