test PROTONMAIL_KEYCHAIN variable
Build and Push Docker Container / build-and-push (push) Successful in 5m26s
Build and Push Docker Container / build-and-push (push) Successful in 5m26s
This commit is contained in:
+4
-18
@@ -1,24 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# start entropy
|
||||
haveged -w 1024 &
|
||||
|
||||
# start dbus
|
||||
eval $(dbus-launch --sh-syntax)
|
||||
|
||||
# start secret service
|
||||
export $(gnome-keyring-daemon --start --components=secrets)
|
||||
|
||||
chmod 700 /root/.gnupg || true
|
||||
mkdir -p /root/.config/protonmail
|
||||
|
||||
# Initialize
|
||||
if [[ $1 == init ]]; then
|
||||
gpg --generate-key --batch /protonmail/gpgparams
|
||||
|
||||
KEY=$(gpg --list-secret-keys --with-colons | awk -F: '/^sec:/ {print $5; exit}')
|
||||
pass init "$KEY"
|
||||
|
||||
if [[ $1 == "init" ]]; then
|
||||
# Kill the other instance as only one can be running at a time.
|
||||
# This allows users to run entrypoint init inside a running conainter
|
||||
# which is useful in a k8s environment.
|
||||
|
||||
Reference in New Issue
Block a user