Correct problems with using Keychain for backup drive credentials

This commit is contained in:
Andrew Miner
2017-08-10 08:16:43 -07:00
parent 306e87c38d
commit b9cee5300e
4 changed files with 20 additions and 23 deletions
+3 -4
View File
@@ -18,10 +18,9 @@ if [[ "$CONFIRM" != "Y" ]]; then
exit 1
fi
security add-generic-password -a $USER -s backup-host -w "$HOST"
security add-generic-password -a $USER -s backup-share -w "$SHARE"
security add-generic-password -a $USER -s backup-username -w "$USERNAME"
security add-generic-password -a $USER -s backup-password -w "$PASSWORD"
echo "afp://$USERNAME:$PASSWORD@$HOST/$SHARE" > ~/.backup-cred
chmod 600 ~/.backup-cred
cp $BIN_DIR/backup-commands.default.sh "$BACKUP_COMMANDS"
chmod u+x "$BACKUP_COMMANDS"