Skip to content
Snippets Groups Projects
Commit 5c507459 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.

parent 9a4f1139
No related branches found
No related tags found
No related merge requests found
...@@ -29,8 +29,11 @@ lc_init () { ...@@ -29,8 +29,11 @@ lc_init () {
echo 'rtest ALL=(ALL) NOPASSWD: ALL' | EDITOR='tee -a' visudo echo 'rtest ALL=(ALL) NOPASSWD: ALL' | EDITOR='tee -a' visudo
usermod --password $(echo testpass | openssl passwd -1 -stdin) rtest 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 if ! sudo -u rtest realpath masterconf.sh; then
sudo -u rtest linuxconf register masterconf.sh 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... # more customization...
grep kernel.sysrq=1 /etc/sysctl.d/99-sysctl.conf || echo 'kernel.sysrq=1' >> /etc/sysctl.d/99-sysctl.conf grep kernel.sysrq=1 /etc/sysctl.d/99-sysctl.conf || echo 'kernel.sysrq=1' >> /etc/sysctl.d/99-sysctl.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment