Commit 86d037d8 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

migration is not needed anymore

parent ca55da64
......@@ -22,15 +22,6 @@ if [ ! -d /app/data/keys ]; then
openvpn --genkey --secret /app/data/keys/ta.key # OpenVPN static key
/app/code/easyrsa/build-dh
/app/code/easyrsa/pkitool --server cloudron # server key
else
echo "==> Migrate keys to new layout"
for file in `find /app/data/keys/*:* -maxdepth 0 -type f -printf "%f\n"`; do
username=$(echo $file | cut -d ":" -f 1)
devicename=$(echo $file | cut -d ":" -f 2) # with the file extension
echo "==> moving $file (username: $username devicename: $devicename"
mkdir -p /app/data/keys/${username}
mv /app/data/keys/$file /app/data/keys/${username}/${devicename}
done
fi
# initializing / regenerating CRL file
......
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