Change upload tool when select password
This commit is contained in:
parent
e054341701
commit
5c384a0350
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user