Change upload tool when select certificate
This commit is contained in:
parent
faead28243
commit
e054341701
11
src/ks-upa
11
src/ks-upa
|
@ -569,9 +569,20 @@ function editConfig() {
|
||||||
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
|
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
|
||||||
cp -rf "${pem_path}" ${dirConfig}/connect.pem
|
cp -rf "${pem_path}" ${dirConfig}/connect.pem
|
||||||
chmod 600 ${dirConfig}/connect.pem
|
chmod 600 ${dirConfig}/connect.pem
|
||||||
|
if [ "${editUpvTool}" == "rsync" ] ; then
|
||||||
|
echo "rsync-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "rsync-rsa" ] ; then
|
||||||
|
echo "rsync-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "scp" ] ; then
|
||||||
|
echo "scp-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "scp-rsa" ] ; then
|
||||||
|
echo "scp-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
fi
|
||||||
echo "* PEM file copied to ${dirConfig}/connect.pem"
|
echo "* PEM file copied to ${dirConfig}/connect.pem"
|
||||||
else
|
else
|
||||||
echo "+ File ${pem_path} does not exist"
|
echo "+ File ${pem_path} does not exist"
|
||||||
|
echo ""
|
||||||
|
echo "+ Press ENTER to return menu " ; read continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
raw_password_enter=${PASS}
|
raw_password_enter=${PASS}
|
||||||
|
|
11
src/ks-upf
11
src/ks-upf
|
@ -596,9 +596,20 @@ function editConfig() {
|
||||||
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
|
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
|
||||||
cp -rf "${pem_path}" ${dirConfig}/connect.pem
|
cp -rf "${pem_path}" ${dirConfig}/connect.pem
|
||||||
chmod 600 ${dirConfig}/connect.pem
|
chmod 600 ${dirConfig}/connect.pem
|
||||||
|
if [ "${editUpvTool}" == "rsync" ] ; then
|
||||||
|
echo "rsync-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "rsync-rsa" ] ; then
|
||||||
|
echo "rsync-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "scp" ] ; then
|
||||||
|
echo "scp-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "scp-rsa" ] ; then
|
||||||
|
echo "scp-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
fi
|
||||||
echo "* PEM file copied to ${dirConfig}/connect.pem"
|
echo "* PEM file copied to ${dirConfig}/connect.pem"
|
||||||
else
|
else
|
||||||
echo "+ File ${pem_path} does not exist"
|
echo "+ File ${pem_path} does not exist"
|
||||||
|
echo ""
|
||||||
|
echo "+ Press ENTER to return menu " ; read continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
raw_password_enter=${PASS}
|
raw_password_enter=${PASS}
|
||||||
|
|
11
src/ks-upr
11
src/ks-upr
|
@ -455,9 +455,20 @@ function editConfig() {
|
||||||
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
|
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
|
||||||
cp -rf "${pem_path}" ${dirConfig}/connect.pem
|
cp -rf "${pem_path}" ${dirConfig}/connect.pem
|
||||||
chmod 600 ${dirConfig}/connect.pem
|
chmod 600 ${dirConfig}/connect.pem
|
||||||
|
if [ "${editUpvTool}" == "rsync" ] ; then
|
||||||
|
echo "rsync-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "rsync-rsa" ] ; then
|
||||||
|
echo "rsync-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "scp" ] ; then
|
||||||
|
echo "scp-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "scp-rsa" ] ; then
|
||||||
|
echo "scp-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
fi
|
||||||
echo "* PEM file copied to ${dirConfig}/connect.pem"
|
echo "* PEM file copied to ${dirConfig}/connect.pem"
|
||||||
else
|
else
|
||||||
echo "+ File ${pem_path} does not exist"
|
echo "+ File ${pem_path} does not exist"
|
||||||
|
echo ""
|
||||||
|
echo "+ Press ENTER to return menu " ; read continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
raw_password_enter=${PASS}
|
raw_password_enter=${PASS}
|
||||||
|
|
11
src/ks-upv
11
src/ks-upv
|
@ -569,9 +569,20 @@ function editConfig() {
|
||||||
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
|
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
|
||||||
cp -rf "${pem_path}" ${dirConfig}/connect.pem
|
cp -rf "${pem_path}" ${dirConfig}/connect.pem
|
||||||
chmod 600 ${dirConfig}/connect.pem
|
chmod 600 ${dirConfig}/connect.pem
|
||||||
|
if [ "${editUpvTool}" == "rsync" ] ; then
|
||||||
|
echo "rsync-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "rsync-rsa" ] ; then
|
||||||
|
echo "rsync-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "scp" ] ; then
|
||||||
|
echo "scp-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
elif [ "${editUpvTool}" == "scp-rsa" ] ; then
|
||||||
|
echo "scp-pem" > ${dirConfig}/ks-upload-tool
|
||||||
|
fi
|
||||||
echo "* PEM file copied to ${dirConfig}/connect.pem"
|
echo "* PEM file copied to ${dirConfig}/connect.pem"
|
||||||
else
|
else
|
||||||
echo "+ File ${pem_path} does not exist"
|
echo "+ File ${pem_path} does not exist"
|
||||||
|
echo ""
|
||||||
|
echo "+ Press ENTER to return menu " ; read continue
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
raw_password_enter=${PASS}
|
raw_password_enter=${PASS}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user