Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
168cf9db15 | ||
|
|
92ef3f0f2e |
@@ -27,7 +27,7 @@
|
|||||||
# SET TO 1 to TEST [will not create user/group/folder]
|
# SET TO 1 to TEST [will not create user/group/folder]
|
||||||
TEST=0; # no actions will be run
|
TEST=0; # no actions will be run
|
||||||
INFO=0; # no creation of anything, just print info strings
|
INFO=0; # no creation of anything, just print info strings
|
||||||
GO=1; # without this flag the script will exit with an info box
|
GO=0; # without this flag the script will exit with an info box
|
||||||
while getopts ":gtih:" opt; do
|
while getopts ":gtih:" opt; do
|
||||||
case "${opt}" in
|
case "${opt}" in
|
||||||
g|go)
|
g|go)
|
||||||
@@ -348,7 +348,7 @@ while read i; do
|
|||||||
else
|
else
|
||||||
create_output_file="${ROOT_FOLDER}${output_file}.TEST";
|
create_output_file="${ROOT_FOLDER}${output_file}.TEST";
|
||||||
fi;
|
fi;
|
||||||
echo $(date +"%F %T")";"${host}";"${_hostname}";"${username}";"${password}";"${ssh_allow_type} >> ${create_output_file};
|
echo $(date +"%F %T")";"${host}";"${_hostname}";"${username}";"${password}";"${ssh_access_type} >> ${create_output_file};
|
||||||
# create folder only if we do not have central
|
# create folder only if we do not have central
|
||||||
# create the SSH foler and authorized access file with correct permissions
|
# create the SSH foler and authorized access file with correct permissions
|
||||||
if [ -z "${SSH_CENTRAL_AUTHORIZED_FILE_FOLDER}" ]; then
|
if [ -z "${SSH_CENTRAL_AUTHORIZED_FILE_FOLDER}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user