mirror of
https://github.com/limosek/zaf-plugins.git
synced 2025-01-21 07:25:56 +01:00
user in parameters can be in both format (root,asroot)
This commit is contained in:
parent
1ae74f8da9
commit
536190b1be
@ -4,7 +4,7 @@ Description::
|
|||||||
Plugin which will make deeper look into directory structure using discovery
|
Plugin which will make deeper look into directory structure using discovery
|
||||||
::
|
::
|
||||||
|
|
||||||
Version: 0.4
|
Version: 0.5
|
||||||
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/fsx
|
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/fsx
|
||||||
Web: https://github.com/limosek/zaf-plugins/
|
Web: https://github.com/limosek/zaf-plugins/
|
||||||
Maintainer: Lukas Macura <lukas@macura.cz>
|
Maintainer: Lukas Macura <lukas@macura.cz>
|
||||||
@ -93,9 +93,9 @@ Script::
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
asroot)
|
asroot|root)
|
||||||
shift; exec sudo -E -n $0 "$@";;
|
shift; exec sudo -E -n $0 "$@";;
|
||||||
aszabbix)
|
aszabbix|zabbix)
|
||||||
shift;;
|
shift;;
|
||||||
esac
|
esac
|
||||||
. $ZAF_LIB_DIR/preload.sh
|
. $ZAF_LIB_DIR/preload.sh
|
||||||
@ -121,9 +121,9 @@ Script::
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
asroot)
|
asroot|root)
|
||||||
shift; exec sudo -E -n $0 "$@";;
|
shift; exec sudo -E -n $0 "$@";;
|
||||||
aszabbix)
|
aszabbix|zabbix)
|
||||||
shift;;
|
shift;;
|
||||||
esac
|
esac
|
||||||
. $ZAF_LIB_DIR/preload.sh
|
. $ZAF_LIB_DIR/preload.sh
|
||||||
@ -146,9 +146,9 @@ Script::
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
asroot)
|
asroot|root)
|
||||||
shift; exec sudo -E -n $0 "$@";;
|
shift; exec sudo -E -n $0 "$@";;
|
||||||
aszabbix)
|
aszabbix|zabbix)
|
||||||
shift;;
|
shift;;
|
||||||
esac
|
esac
|
||||||
. $ZAF_LIB_DIR/preload.sh
|
. $ZAF_LIB_DIR/preload.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user