No other args
This commit is contained in:
David Heinemeier Hansson 2025-08-19 14:45:34 +02:00
parent 84420db026
commit cedf20eb36

View File

@ -12,11 +12,10 @@ if ! cmp -s /proc/1/root/ / 2>/dev/null; then
fi
chrootable_systemctl_enable() {
local args=("$@")
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then
sudo systemctl "${args[@]}" enable
sudo systemctl enable $1
else
sudo systemctl "${args[@]}" enable --now
sudo systemctl enable --now $1
fi
}