Change upload tool when select password

This commit is contained in:
q3aql 2023-03-12 18:51:03 +01:00
parent e054341701
commit 5c384a0350
4 changed files with 20 additions and 0 deletions

View File

@ -588,6 +588,11 @@ function editConfig() {
raw_password_enter=${PASS}
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
if [ "${editUpvTool}" == "rsync-pem" ] ; then
echo "rsync" > ${dirConfig}/ks-upload-tool
elif [ "${editUpvTool}" == "scp-pem" ] ; then
echo "scp" > ${dirConfig}/ks-upload-tool
fi
fi
elif [ "${EDIT}" == "3" ] ; then
echo -n "* Enter the server URL: " ; read SERVER

View File

@ -615,6 +615,11 @@ function editConfig() {
raw_password_enter=${PASS}
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
if [ "${editUpvTool}" == "rsync-pem" ] ; then
echo "rsync" > ${dirConfig}/ks-upload-tool
elif [ "${editUpvTool}" == "scp-pem" ] ; then
echo "scp" > ${dirConfig}/ks-upload-tool
fi
fi
elif [ "${EDIT}" == "3" ] ; then
echo -n "* Enter the server URL: " ; read SERVER

View File

@ -474,6 +474,11 @@ function editConfig() {
raw_password_enter=${PASS}
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
if [ "${editUpvTool}" == "rsync-pem" ] ; then
echo "rsync" > ${dirConfig}/ks-upload-tool
elif [ "${editUpvTool}" == "scp-pem" ] ; then
echo "scp" > ${dirConfig}/ks-upload-tool
fi
fi
elif [ "${EDIT}" == "3" ] ; then
echo -n "* Enter the server URL: " ; read SERVER

View File

@ -588,6 +588,11 @@ function editConfig() {
raw_password_enter=${PASS}
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
echo ${encrypt_password_enter} > ${dirConfig}/ks-upload-pass
if [ "${editUpvTool}" == "rsync-pem" ] ; then
echo "rsync" > ${dirConfig}/ks-upload-tool
elif [ "${editUpvTool}" == "scp-pem" ] ; then
echo "scp" > ${dirConfig}/ks-upload-tool
fi
fi
elif [ "${EDIT}" == "3" ] ; then
echo -n "* Enter the server URL: " ; read SERVER