prevent parameter error, replace hardcoded

This commit is contained in:
root@zabbix.znil.net 2020-04-17 11:40:38 +02:00
parent 01a3866c6e
commit 12533f8f5f
2 changed files with 7 additions and 5 deletions

View File

@ -1,8 +1,10 @@
# zabbix-ldap-sync-bash # zabbix-ldap-sync-bash
This is a pure bash-script for syncing a Actice-Directory Group via LDAP with a Zabbix-Group This is a pure bash-script for syncing a Actice-Directory Group via LDAP with a Zabbix-Group
**Changelog:** 2020-04-14 V1.1 => first public version **Changelog:**<br>
- 2020-04-14 V1.1 => first public version
- 2020-04-17 V1.1a => Replace hard coded $2 with push-solution
<br>
## Features: ## Features:
- Pure Bash Skript for Linux - Pure Bash Skript for Linux

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
############################################################################################################# #############################################################################################################
# Script Name ...: zabbix-ldap-sync.sh # Script Name ...: zabbix-ldap-sync.sh
# Version .......: V1.1 # Version .......: V1.1a
# Date ..........: 14.04.2020 # Date ..........: 17.04.2020
# Description....: Synchronise Members of a Actice Directory Group with Zabbix via API # Description....: Synchronise Members of a Actice Directory Group with Zabbix via API
# User wich are removed will be deactivated # User wich are removed will be deactivated
# Args ..........: # Args ..........:
@ -11,7 +11,7 @@
# Email Private : Bernhard@znil.de # Email Private : Bernhard@znil.de
############################################################################################################# #############################################################################################################
# Variables # Variables
Script_Version="V1.1 (2020-04-14)" Script_Version="V1.1a (2020-04-17)"
# Colors for printf and echo # Colors for printf and echo
DEFAULT_FOREGROUND=39 DEFAULT_FOREGROUND=39
RED=31 RED=31