diff --git a/add_missing_columns.sh b/add_missing_columns.sh index d2b6bf8..c83848e 100755 --- a/add_missing_columns.sh +++ b/add_missing_columns.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -182,6 +184,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some # ============= @@ -239,6 +246,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/add_missing_indices.sh b/add_missing_indices.sh index 38dfcd4..27bcbe6 100755 --- a/add_missing_indices.sh +++ b/add_missing_indices.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -182,6 +184,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some # ============= @@ -239,6 +246,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/add_missing_primary-keys.sh b/add_missing_primary-keys.sh index bbd3fa6..c8c02b8 100755 --- a/add_missing_primary-keys.sh +++ b/add_missing_primary-keys.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -182,6 +184,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some # ============= @@ -239,6 +246,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/add_user_to_group.sh b/add_user_to_group.sh index c37aea0..6081bdf 100755 --- a/add_user_to_group.sh +++ b/add_user_to_group.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -219,6 +221,11 @@ fi IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some @@ -277,6 +284,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/check_encryption_scan_legacy-format b/check_encryption_scan_legacy-format index d0994e3..7bdfa3e 100755 --- a/check_encryption_scan_legacy-format +++ b/check_encryption_scan_legacy-format @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -190,6 +192,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some # ============= @@ -247,6 +254,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/check_for_old_files.sh b/check_for_old_files.sh index 6494485..eb81590 100755 --- a/check_for_old_files.sh +++ b/check_for_old_files.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -190,6 +192,11 @@ fi IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some # ============= @@ -246,6 +253,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/convert_filecache_bigint.sh b/convert_filecache_bigint.sh index 0ea4eda..8be666c 100755 --- a/convert_filecache_bigint.sh +++ b/convert_filecache_bigint.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -190,6 +192,11 @@ done < <(find "${conf_dir}" -maxdepth 1 -type f -name "*.conf" -print0) IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some # ============= @@ -247,6 +254,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/occ_file_scan_app-data.sh b/occ_file_scan_app-data.sh index 3b005c8..0b942a8 100755 --- a/occ_file_scan_app-data.sh +++ b/occ_file_scan_app-data.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -248,6 +250,12 @@ if [[ -z "$WEBSITE" ]] ; then #fatal "No website ios given on commandline - Missing Parameter '-s '" fi + +# - Reset IFS +# - +IFS=$CUR_IFS + + WEB_BASE_DIR="/var/www/${WEBSITE}" if [[ ! -d ${WEB_BASE_DIR} ]] ; then diff --git a/occ_maintenance.sh b/occ_maintenance.sh index 95fea6a..c25a6a6 100755 --- a/occ_maintenance.sh +++ b/occ_maintenance.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -246,6 +248,11 @@ if [[ -z "$WEBSITE" ]] ; then #fatal "No website ios given on commandline - Missing Parameter '-s '" fi + +# - Reset IFS +# - +IFS=$CUR_IFS + WEB_BASE_DIR="/var/www/${WEBSITE}" if [[ ! -d ${WEB_BASE_DIR} ]] ; then diff --git a/remove_user_from_group.sh b/remove_user_from_group.sh index e3010ed..a4ebafa 100755 --- a/remove_user_from_group.sh +++ b/remove_user_from_group.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS=$IFS + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -219,6 +221,11 @@ fi IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some @@ -277,6 +284,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/restore_nextcloud.sh b/restore_nextcloud.sh index 313af09..b8a06ab 100755 --- a/restore_nextcloud.sh +++ b/restore_nextcloud.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS="$IFS" + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -186,6 +188,11 @@ fi IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + + # ============= # --- Some @@ -243,6 +250,11 @@ read _IN done +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echononl " Include Configuration file.." if [[ ! -f $conf_file ]]; then diff --git a/update_nextcloud.sh b/update_nextcloud.sh index a8c6d70..a28c371 100755 --- a/update_nextcloud.sh +++ b/update_nextcloud.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +CUR_IFS="$IFS" + script_name="$(basename $(realpath $0))" script_dir="$(dirname $(realpath $0))" @@ -211,6 +213,10 @@ fi IFS=$'\n' website_arr=($(sort <<<"${unsorted_website_arr[*]}")) +# - Reset IFS +# - +IFS=$CUR_IFS + # ============= # --- Some @@ -267,6 +273,12 @@ read _IN fi done + +# - Reset IFS +# - +IFS=$CUR_IFS + + echo "" echo -e "\033[32m--\033[m" echo ""