1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

In future let's try to keep credentials in their own apps

This commit is contained in:
A Holt 2022-04-08 08:54:20 -04:00 committed by GitHub
parent 95243d12ed
commit 8580c8e45e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,8 @@ echo -e "https://github.com/iiab/iiab/blob/master/roles/remoteit/README.md\n"
[ ! -d /etc/remoteit ] &&
mkdir /etc/remoteit
# Passwords and license keys in /etc/iiab/local_vars.yml are not a healthy
# precedent :/ (Going forward let's try to keep such fully in their own apps.)
KEY1=$(iiab_var_value remoteit_license_key)
if [[ $KEY1 != "" ]]; then
if [ -s /etc/remoteit/registration ]; then # Non-zero size
@ -36,7 +38,7 @@ if [[ $KEY1 != "" ]]; then
echo -e "Removed remoteit_license_key line from /etc/iiab/local_vars.yml\n"
fi
# /etc/remoteit/registration consequences summarized on lines 78-83
# /etc/remoteit/registration consequences summarized on lines 80-85
if [ -s /etc/remoteit/registration ]; then # Non-zero size
cp -p /etc/remoteit/registration /tmp/etc.remoteit.registration
echo -e "License key $(cat /etc/remoteit/registration) will be attempted."