s
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
quackerd 2021-04-10 04:57:00 -04:00
parent 0ffb5804db
commit e89a18def8
2 changed files with 14 additions and 1 deletions

View File

@ -24,3 +24,14 @@ steps:
password:
from_secret: docker_password
repo: quackerd/rainloop
- name: upload
image: plugins/s3
settings:
bucket: 3bd6b2ce5101e791b665d709aa8518ce
access_key:
from_secret: s3_username
secret_key:
from_secret: s3_password
source: ./uploads/*
target: config/

View File

@ -2,10 +2,12 @@
set +e
SALT="md5md5"
mkdir -p ./uploads
for filename in ./confs/*; do
fname=$(basename $filename)
fhash=$(echo -n '$fname' | openssl dgst -md5 | sed -E 's/\(stdin\)= (.*)/\1/')
fhash=$(echo -n '$fname.$SALT' | openssl dgst -md5 | sed -E 's/\(stdin\)= (.*)/\1/')
openssl aes-256-cbc -md sha512 -pbkdf2 -in $filename -out ./uploads/$fhash.conf -k "sergeygorbunov"
done