/ wip - lordOfTheRing.sh

This commit is contained in:
committer@tuxwarrior
2025-04-08 14:35:06 -05:00
parent 63f388ba9e
commit 7885d4537e
2 changed files with 6 additions and 1 deletions

View File

@@ -51,6 +51,8 @@ tf_secret_nextcloud_app="/tmp/sna.lotr"
tf_secret_nextcloud_base="/tmp/snb.lotr"
tf_secret_proton_account_singular="/tmp/sps.lotr"
tf_secret_proton_accounts_multiple="/tmp/spm.lotr"
tf_log_population_nextcloud="/tmp/lotr_nextcloud_populated.lotr"
tf_log_population_proton="/tmp/lotr_nextcloud_populated.lotr"
# https://gist.github.com/melbahja/33fac6f3f823632e880401f5f7451cfb
cat ${keyring_file} | while read line || [[ -n ${line} ]];
@@ -119,6 +121,8 @@ then
# >>> set value 2 | frode:https://nx.op.fo/:0
pwd_user_frode=$(cat ${tf_secret_nextcloud_base});
echo -n "${pwd_user_frode}" | secret-tool store --label="Nextcloud" server Nextcloud user frode:https://nx.op.fo/:0 type plaintext
echo "OK" > ${tf_log_population_nextcloud};
fi
# --------------------
@@ -141,4 +145,6 @@ then
# >>> set value 2 | proton-sso-accounts
pwd_proton_2=$(cat ${tf_secret_proton_accounts_multiple});
echo -n "${pwd_proton_2}" | secret-tool store --label="Password for 'proton-sso-accounts' on 'Proton'" application "Python keyring library" service Proton username proton-sso-accounts
echo "OK" > ${tf_log_population_proton};
fi

View File

@@ -44,7 +44,6 @@ elif [[ "${XWM}" == "i3" ]]; then
${display_setup}
# populate keyring, and sleep to make sure it takes effect before apps start
#/home/poq/syncDir/secrets/keyring/add_keyring_secrets.sh
lordOfTheRing.sh
sleep 3.5