refactor config

This commit is contained in:
Alexander Navarro 2023-02-13 01:53:52 -03:00
commit 4f0e213f4a
155 changed files with 13983 additions and 0 deletions

12
scripts/check-dependencies Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -Eeuo pipefail
# Return 1 if any of the arguments is missing
for dep in "$@"; do
if ! (command -v "$dep" &>/dev/null || systemctl -q list-unit-files "${dep}.service" &>/dev/null); then
echo -e "${dep} not found!"
exit 1
fi
done