Re: [Solved] Is there a way to manually enable a service?
Reply #2 –
Uhmm... I have
echo "==> setup.sh: Enable ssh access manually for box.."
/usr/bin/artix-chroot /mnt ln -s /etc/dinit.d/sshd /etc/dinit.d/boot.d/sshd
/usr/bin/install --owner=root --group=root --mode=0644 etc/dinit.d/sshd /mnt /etc/dinit.d/sshd
/usr/bin/install --owner=root --group=root ${INIT_DIR}/scripts/sshd /mnt /etc/dinit.d/scripts/sshd
This works.
I'm not sure what $svc is, but my above code works.
(I need to run all commands using artix-chroot directly due to packer.)
Unfortunately, I seem to have another issue with packer.