File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ mkdir -p etc/ssh var/lib/secrets
48
48
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
49
49
50
50
umask 0177
51
- sops --extract ' ["initrd_ssh_key"]' -d " $SCRIPT_DIR /secrets.yaml" > ./var/lib/secrets/initrd_ssh_key
51
+ sops --extract ' ["initrd_ssh_key"]' --decrypt " $SCRIPT_DIR /secrets.yaml" > ./var/lib/secrets/initrd_ssh_key
52
52
53
53
# restore umask
54
54
umask 0022
@@ -59,7 +59,7 @@ for keyname in ssh_host_rsa_key ssh_host_rsa_key.pub ssh_host_ed25519_key ssh_ho
59
59
else
60
60
umask 0177
61
61
fi
62
- sops --extract ' ["' $keyname ' "]' -d " $SCRIPT_DIR /secrets.yaml" > " ./etc/ssh/$keyname "
62
+ sops --extract ' ["' $keyname ' "]' --decrypt " $SCRIPT_DIR /secrets.yaml" > " ./etc/ssh/$keyname "
63
63
done
64
64
```
65
65
@@ -72,7 +72,7 @@ set -euo pipefail
72
72
73
73
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
74
74
cd " $SCRIPT_DIR "
75
- sops --extract ' ["zfs-key"]' -d " $SCRIPT_DIR /secrets.yaml" > " ./etc/ssh/ $keyname "
75
+ sops --extract ' ["zfs-key"]' --decrypt " $SCRIPT_DIR /secrets.yaml"
76
76
```
77
77
78
78
## See also
You can’t perform that action at this time.
0 commit comments