Update default.inc
This commit is contained in:
1 parent
47f3182fa0
commit
30d8d6bfd9
1 file changed
+9
@@ -162,6 +162,15 @@ DIVIDER(){
|
||||
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
|
||||
abet[0]="a"
|
||||
|
||||
Reference in new issue
Block a user