Update default.inc
This commit is contained in:
@@ -161,6 +161,15 @@ DIVIDER(){
|
||||
echo ""
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user