2025-08-23 20:23:08 +02:00

9 lines
242 B
Bash

# Starting the installer with OMARCHY_CHROOT_INSTALL=1 will put it into chroot mode
chrootable_systemctl_enable() {
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then
sudo systemctl enable $1
else
sudo systemctl enable --now $1
fi
}