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() {