From 935c590dfa0bd413893d2eea907a54d4a309e6b9 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 12 Mar 2023 15:05:07 +0100 Subject: [PATCH] Set the correct permissions to the pem file (ks-upv/upa/upf/upr) --- src/ks-upa | 9 +++++++-- src/ks-upf | 9 +++++++-- src/ks-upr | 9 +++++++-- src/ks-upv | 9 +++++++-- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/src/ks-upa b/src/ks-upa index b99c2e0..9696af1 100755 --- a/src/ks-upa +++ b/src/ks-upa @@ -2,12 +2,12 @@ ######################################################################## # ks-upa (ks-tools) - Upload audio file(s) to server with scp or rsync # -# Date: 11-03-2023 # +# Date: 12-03-2023 # # Author: q3aql # # Contact: q3aql@duck.com # ######################################################################## VERSION="8.5-dev" -M_DATE="110323" +M_DATE="120323" # Global parameters. dirTemp="/tmp" @@ -26,6 +26,11 @@ else cygwin="no" fi +# Set the correct permissions to the pem file +if [ -f ${dirConfig}/connect.pem ] ; then + chmod 600 ${dirConfig}/connect.pem +fi + # Function to remove spaces and symbols # Syntax: convertText "" function convertText() { diff --git a/src/ks-upf b/src/ks-upf index ffb3208..2632876 100755 --- a/src/ks-upf +++ b/src/ks-upf @@ -2,12 +2,12 @@ ######################################################################### # ks-upf (ks-tools) - Upload common file(s) to server with scp or rsync # -# Date: 11-03-2023 # +# Date: 12-03-2023 # # Author: q3aql # # Contact: q3aql@duck.com # ######################################################################### VERSION="8.5-dev" -M_DATE="110323" +M_DATE="120323" # Global parameters. dirTemp="/tmp" @@ -26,6 +26,11 @@ else cygwin="no" fi +# Set the correct permissions to the pem file +if [ -f ${dirConfig}/connect.pem ] ; then + chmod 600 ${dirConfig}/connect.pem +fi + # Function to remove spaces and symbols # Syntax: convertText "" function convertText() { diff --git a/src/ks-upr b/src/ks-upr index cc12271..6c0d431 100755 --- a/src/ks-upr +++ b/src/ks-upr @@ -2,12 +2,12 @@ ############################################################################## # ks-upr (ks-tools) - Upload recursively file(s) to server with scp or rsync # -# Date: 11-03-2023 # +# Date: 12-03-2023 # # Author: q3aql # # Contact: q3aql@duck.com # ############################################################################## VERSION="8.5-dev" -M_DATE="110323" +M_DATE="120323" # Global parameters. dirTemp="/tmp" @@ -26,6 +26,11 @@ else cygwin="no" fi +# Set the correct permissions to the pem file +if [ -f ${dirConfig}/connect.pem ] ; then + chmod 600 ${dirConfig}/connect.pem +fi + # Function to remove spaces and symbols # Syntax: convertText "" function convertText() { diff --git a/src/ks-upv b/src/ks-upv index 419a938..a8d123a 100755 --- a/src/ks-upv +++ b/src/ks-upv @@ -2,12 +2,12 @@ ######################################################################### # ks-upv (ks-tools) - Upload videos file(s) to server with scp or rsync # -# Date: 11-03-2023 # +# Date: 12-03-2023 # # Author: q3aql # # Contact: q3aql@duck.com # ######################################################################### VERSION="8.5-dev" -M_DATE="110323" +M_DATE="120323" # Global parameters. dirTemp="/tmp" @@ -26,6 +26,11 @@ else cygwin="no" fi +# Set the correct permissions to the pem file +if [ -f ${dirConfig}/connect.pem ] ; then + chmod 600 ${dirConfig}/connect.pem +fi + # Function to remove spaces and symbols # Syntax: convertText "" function convertText() {