Update default.inc
This commit is contained in:
@@ -162,6 +162,15 @@ DIVIDER(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service_exists() {
|
||||||
|
local n=$1
|
||||||
|
if [[ $(systemctl list-units --all -t service --full --no-legend "$n.service" | sed 's/^\s*//g' | cut -f1 -d' ') == $n.service ]]; then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
declare -A abet
|
declare -A abet
|
||||||
abet[0]="a"
|
abet[0]="a"
|
||||||
|
|||||||
Reference in New Issue
Block a user