Moved gpgparams to initproton.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d7785bd31d
commit
f2c2a5d5ba
3 changed files with 2 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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:-}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue