Skip to content

Instantly share code, notes, and snippets.

@plavjanik
Last active August 21, 2018 10:57
Show Gist options
  • Save plavjanik/38d61985d37bbc12aa5b2fea2d683a1a to your computer and use it in GitHub Desktop.
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
#!/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