echo 'export OPENSSL_CONF="/usr/local/openssl-1.1.0e/ssl/openssl.cnf"' >  /etc/environment;
echo 'LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:/usr/local/xmlsec1-1.2.23/lib:/usr/local/openssl-1.1.0e/lib:/usr/local/libxml2-2.9.4/lib:${LD_LIBRARY_PATH}"' >> /etc/environment;
export OPENSSL_CONF="/usr/local/openssl-1.1.0e/ssl/openssl.cnf";
ln -sf /usr/local/openssl-1.1.0e/bin/openssl /usr/bin/openssl;
ln -sf /usr/local/openssl-1.1.0e/ssl/openssl.cnf /usr/lib/ssl/openssl.cnf;
cd /var/www/cyberft/app/src/;
sudo -u www-data PATH="$PATH:$(ls -d /opt/cprocsp/{s,}bin/*|tr '\n' ':')" ./yii cryptopro/add-certificates-from-terminal iso20022;
sudo -u www-data PATH="$PATH:$(ls -d /opt/cprocsp/{s,}bin/*|tr '\n' ':')" ./yii cryptopro/add-certificates-from-terminal fileact;
ln -sf /var/www/cyberft/app/src/bin/cyberft-crypt /usr/local/bin/cyberft-crypt;
chmod 777 /var/lib/redis/dump.rdb && chown redis:redis /var/lib/redis/dump.rdb;
echo 'export PATH="$PATH:$(ls -d /opt/cprocsp/{s,}bin/*|tr '\n' ':')"' > /etc/profile.d/cryptopro.sh;

