Last active
August 21, 2018 10:57
-
-
Save plavjanik/38d61985d37bbc12aa5b2fea2d683a1a to your computer and use it in GitHub Desktop.
This unlocks keyring that is necessary for secure secret storage that is used by Brightside
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# This unlocks keyring that is necessary for secure secret storage that is used by Brightside | |
# Tested on CentOS 7 | |
# | |
# Usage: . ./unlock_keyring_for_bright.sh | |
# | |
## Test for an existing bus daemon, just to be safe: | |
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then | |
## If not found, launch a new one: | |
eval `dbus-launch --sh-syntax` | |
echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS" | |
fi | |
# Unlock the keyring for Jenkins: | |
echo 'jenkins' | gnome-keyring-daemon --unlock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment