mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
In future let's try to keep credentials in their own apps
This commit is contained in:
parent
95243d12ed
commit
8580c8e45e
1 changed files with 3 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue