diff --git a/examples/archlinux-gnome/conf.d/basic.sh b/examples/archlinux-gnome/conf.d/basic.sh index 63bed4d1fa8304ccc2f8957dafb9d12ba1cd5043..211d855f501f6039d16724999d3874e42ffa6c94 100644 --- a/examples/archlinux-gnome/conf.d/basic.sh +++ b/examples/archlinux-gnome/conf.d/basic.sh @@ -29,8 +29,11 @@ lc_init () { echo 'rtest ALL=(ALL) NOPASSWD: ALL' | EDITOR='tee -a' visudo usermod --password $(echo testpass | openssl passwd -1 -stdin) rtest - sudo -u rtest realpath masterconf.sh || ! echo "ERROR: rtest do not have access to config dir." || exit 1 - sudo -u rtest linuxconf register masterconf.sh + if ! sudo -u rtest realpath masterconf.sh; then + echo "ERROR: rtest do not have access to current dir... fix permission and manually register with 'sudo -u rtest'." + else + sudo -u rtest linuxconf register masterconf.sh + fi # more customization... grep kernel.sysrq=1 /etc/sysctl.d/99-sysctl.conf || echo 'kernel.sysrq=1' >> /etc/sysctl.d/99-sysctl.conf