diff options
author | Georg | 2021-09-24 23:25:21 +0200 |
---|---|---|
committer | Georg | 2021-09-24 23:25:21 +0200 |
commit | c885a5ef8ae8ebccbbb9522c0eed08b64ec976c5 (patch) | |
tree | 0b84b4acc12aa64fdfa785fcda735c06918b348c /scripts/sh | |
parent | 8b3d82bd9401182fec8f64630e1c76bca76ed336 (diff) | |
download | system-c885a5ef8ae8ebccbbb9522c0eed08b64ec976c5.tar.gz system-c885a5ef8ae8ebccbbb9522c0eed08b64ec976c5.tar.bz2 system-c885a5ef8ae8ebccbbb9522c0eed08b64ec976c5.zip |
Adding chmod, changing timeout, removing warning
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'scripts/sh')
-rw-r--r-- | scripts/sh/deploy_directory_client.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/sh/deploy_directory_client.sh b/scripts/sh/deploy_directory_client.sh index b7b0272..7caa447 100644 --- a/scripts/sh/deploy_directory_client.sh +++ b/scripts/sh/deploy_directory_client.sh @@ -1,7 +1,6 @@ #!/bin/sh -echo "THIS SCRIPT IS NOT READY FOR USE IN PRODUCTION" -echo "YOU HAVE 15 seconds to abort with Ctrl+C." -sleep 15s +echo "You have 10 seconds to abort with Ctrl+C." +sleep 10s if [ "$(id -u)" = "0" ]; then DISTRIB=$(awk -F= '/^NAME/{print $2}' /etc/os-release) if [ "${DISTRIB}" = '"openSUSE Leap"' ] || [ "${DISTRIB}" = '"openSUSE Tumbleweed"' ]; then @@ -61,6 +60,7 @@ ldap_user_ssh_public_key = sshPublicKey sudo_provider = ldap ldap_sudo_search_base = ou=SUDOers,ou=syscid-system,dc=syscid,dc=com EOF + chmod 600 /etc/sssd/sssd.conf mv /etc/nsswitch.conf /etc/nsswitch.conf.orig cat <<'EOF' >/etc/nsswitch.conf # SYSCID Directory and Authentication Service |