From cebd7c519a2912d8aecf53e5c1639a8f1d20823c Mon Sep 17 00:00:00 2001 From: fullincome Date: Wed, 8 Apr 2020 18:33:03 +0300 Subject: [PATCH] chore: better dsrf --- .travis.yml | 3 ++- prepare_silent_mod.sh | 11 ----------- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100755 prepare_silent_mod.sh diff --git a/.travis.yml b/.travis.yml index bfc949e..f238ab0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,11 +24,12 @@ addons: install: - wget https://$ACCOUNT@update.cryptopro.ru/support/stunnel/mydsrf && wget https://$ACCOUNT@update.cryptopro.ru/support/stunnel/dist/csp50/${ARCH_DIST}_deb.tgz && + wget https://gist.githubusercontent.com/fullincome/$GIST_DSRF_SECRET/install_dsrf.sh && chmod +x install_dsrf.sh && tar -xvf ${ARCH_DIST}_deb.tgz script: - sudo ./nginx-gost/install-nginx.sh --csp=${ARCH_DIST}_deb && - sudo ./prepare_silent_mod.sh && + sudo ./install_dsrf.sh --kc2 && sudo ./nginx-gost/install-certs.sh --silent && sudo /usr/sbin/nginx -c /etc/nginx/nginx.conf && sudo ./test_nginx.sh diff --git a/prepare_silent_mod.sh b/prepare_silent_mod.sh deleted file mode 100755 index 5ca0eff..0000000 --- a/prepare_silent_mod.sh +++ /dev/null @@ -1,11 +0,0 @@ -cpro_path="/opt/cprocsp" -dsrf_path="/var/opt/cprocsp/dsrf" -cpconfig="${cpro_path}/sbin/amd64/cpconfig" - -${cpconfig} -hardware rndm -add cpsd -name 'cpsd rng' -level 2 && -${cpconfig} -hardware rndm -configure cpsd -add string /db1/kis_1 "${dsrf_path}/db1/kis_1" && -${cpconfig} -hardware rndm -configure cpsd -add string /db2/kis_1 "${dsrf_path}/db2/kis_1" && -cp ./mydsrf "${dsrf_path}/db1/kis_1" && -cp ./mydsrf "${dsrf_path}/db2/kis_1" && -/etc/init.d/cprocsp restart - \ No newline at end of file