mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
12 lines
334 B
Bash
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
|