From 5c384a0350eed1e4985c80ae0c58a74bc6791da9 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 12 Mar 2023 18:51:03 +0100 Subject: [PATCH] Change upload tool when select password --- src/ks-upa | 5 +++++ src/ks-upf | 5 +++++ src/ks-upr | 5 +++++ src/ks-upv | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/src/ks-upa b/src/ks-upa index f698c03..5ab1c73 100755 --- a/src/ks-upa +++ b/src/ks-upa @@ -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 diff --git a/src/ks-upf b/src/ks-upf index dd1ca38..92f80b3 100755 --- a/src/ks-upf +++ b/src/ks-upf @@ -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 diff --git a/src/ks-upr b/src/ks-upr index 77463e9..2797938 100755 --- a/src/ks-upr +++ b/src/ks-upr @@ -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 diff --git a/src/ks-upv b/src/ks-upv index 7502b92..e48b133 100755 --- a/src/ks-upv +++ b/src/ks-upv @@ -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