This commit is contained in:
parent
0ffb5804db
commit
e89a18def8
11
.drone.yml
11
.drone.yml
@ -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/
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user