Moved gpgparams to initproton.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
michael 2020-05-22 11:50:51 -05:00
parent d7785bd31d
commit f2c2a5d5ba
3 changed files with 2 additions and 10 deletions

View file

@ -23,7 +23,6 @@ COPY entrypoint /bin/
RUN chmod +x /bin/entrypoint
COPY initproton /bin/
RUN chmod +x /bin/initproton
COPY gpgparams /tmp/
WORKDIR /var/lib/proton
EXPOSE 25/tcp
EXPOSE 143/tcp

View file

@ -1,8 +0,0 @@
%no-protection
%echo Generating a basic OpenPGP key
Key-Type: RSA
Key-Length: 2048
Name-Real: pass-key
Expire-Date: 0
%commit
%echo done

View file

@ -12,7 +12,8 @@ if [ -n "$PASS_FILE" ]; then
fi
if ! [ -f ./initialized ]; then
gpg --generate-key --batch /tmp/gpgparams
echo -e "%no-protection\nKey-Type: RSA\nKey-Length: 2048\nName-Real: $EMAIL\nExpire-Date: 0\n%commit" \
| gpg --generate-key --batch
pass init pass-key
COMMAND="login\n$EMAIL\n$PASSWORD"
RUN_2FA_LOGIN=${RUN_2FA_LOGIN:-}