Commit 765a9644 authored by Benoît's avatar Benoît
Browse files

Removed "sudo" and forced mv

parent 82bf3ef2
......@@ -13,14 +13,13 @@ if [ ! -f "/opt/certbot-auto" ]; then
fi
cd /usr/sbin/r1soft/conf/
mkdir -p /usr/sbin/r1soft/conf/LetsEncrypt
echo " -- Cleaning -- "
rm -f request.csr
rm -f *.pem
echo " -- Delete Keystore -- "
sudo rm -f ./keystore
rm -f keystore
echo " -- Recreate Keystore -- "
keytool -genkey -noprompt -alias cdp -dname "CN=$(hostname), OU=HaiSoft, O=HaiSoft, L=Orléans, S=Centre, C=FR" -keystore ./keystore -storepass "password" -KeySize 2048 -keypass "password" -keyalg RSA
......@@ -37,6 +36,7 @@ keytool -import -trustcacerts -alias cdp -file 0001_chain.pem -keystore ./keysto
echo " -- Cleaning -- "
rm -f request.csr
mv *.pem ./LetsEncrypt/
mkdir -p /usr/sbin/r1soft/conf/LetsEncrypt
/bin/mv *.pem ./LetsEncrypt/
service cdp-server restart
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment