Update default.inc

This commit is contained in:
2022-11-05 11:01:50 -05:00
parent 47f3182fa0
commit 30d8d6bfd9

View File

@@ -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