paulbsd-salt/scripts/encrypt_password
2020-07-10 00:58:55 +02:00

11 lines
203 B
Bash
Executable File

#!/bin/bash
key_id=salt
if [[ $1 != "" ]]
then
echo -n $1 | gpg --armor --batch --homedir="/etc/salt/gpgkeys" --trust-model always --encrypt -r "${key_id}"
else
echo "Please specify a password"
fi