We don't have to test whether the system is Debian or OpenBSD anymore
This commit is contained in:
parent
71436c2f44
commit
1add27c67d
10
evocheck.sh
10
evocheck.sh
|
@ -328,11 +328,11 @@ fi
|
||||||
if [ "$IS_EVOMAINTENANCEUSERS" = 1 ]; then
|
if [ "$IS_EVOMAINTENANCEUSERS" = 1 ]; then
|
||||||
# Can be changed in evocheck.cf
|
# Can be changed in evocheck.cf
|
||||||
homeDir=${homeDir:-/home}
|
homeDir=${homeDir:-/home}
|
||||||
if ! is_debianversion stretch; then
|
sudoers="/etc/sudoers"
|
||||||
if [ -f /etc/sudoers.d/evolinux ]; then
|
for i in $( (grep "^User_Alias *ADMIN" $sudoers | cut -d= -f2 | tr -d " "; grep ^sudo /etc/group |cut -d: -f 4) | tr "," "\n" |sort -u); do
|
||||||
sudoers="/etc/sudoers.d/evolinux"
|
grep -qs "^trap.*sudo.*evomaintenance.sh" ${homeDir}/${i}/.*profile
|
||||||
else
|
if [ $? != 0 ]; then
|
||||||
sudoers="/etc/sudoers"
|
failed "IS_EVOMAINTENANCEUSERS" "$i doesn't have evomaintenance trap!"
|
||||||
fi
|
fi
|
||||||
for i in $( (grep "^User_Alias *ADMIN" $sudoers | cut -d= -f2 | tr -d " "; grep ^sudo /etc/group |cut -d: -f 4) | tr "," "\n" |sort -u); do
|
for i in $( (grep "^User_Alias *ADMIN" $sudoers | cut -d= -f2 | tr -d " "; grep ^sudo /etc/group |cut -d: -f 4) | tr "," "\n" |sort -u); do
|
||||||
grep -qs "^trap.*sudo.*evomaintenance.sh" ${homeDir}/${i}/.*profile
|
grep -qs "^trap.*sudo.*evomaintenance.sh" ${homeDir}/${i}/.*profile
|
||||||
|
|
Loading…
Reference in a new issue