Assign the correct permissions to the pem file when importing it (ks-upv/upa/upf/upr)
This commit is contained in:
parent
147753c1a0
commit
906cb000d9
|
@ -563,6 +563,7 @@ function editConfig() {
|
||||||
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
||||||
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
|
||||||
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"
|
||||||
|
@ -667,6 +668,7 @@ function createConfig() {
|
||||||
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
||||||
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
|
||||||
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"
|
||||||
|
|
|
@ -590,6 +590,7 @@ function editConfig() {
|
||||||
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
||||||
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
|
||||||
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"
|
||||||
|
@ -694,6 +695,7 @@ function createConfig() {
|
||||||
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
||||||
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
|
||||||
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"
|
||||||
|
|
|
@ -449,6 +449,7 @@ function editConfig() {
|
||||||
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
||||||
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
|
||||||
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"
|
||||||
|
@ -553,6 +554,7 @@ function createConfig() {
|
||||||
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
||||||
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
|
||||||
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"
|
||||||
|
|
|
@ -563,6 +563,7 @@ function editConfig() {
|
||||||
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
||||||
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
|
||||||
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"
|
||||||
|
@ -667,6 +668,7 @@ function createConfig() {
|
||||||
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
encrypt_password_enter=$(encrypt_kstools "${raw_password_enter}")
|
||||||
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
|
||||||
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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user