This repository has been archived on 2026-10-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
omarchy/install/helpers/chroot.sh
T

12 lines
334 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
}
# Export the function so it's available in subshells
export -f chrootable_systemctl_enable