2025-08-25 07:37:34 +02:00

9 lines
242 B
Bash
Executable File

# 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
}