2015-08-22 14:10:01 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# FOR MY PERSONAL USE ONLY!
|
|
|
|
|
|
|
|
mkdir -p /etc/
|
2023-05-18 10:58:51 +02:00
|
|
|
cat oidentd.conf >/etc/oidentd.conf
|
2015-08-22 14:10:01 +02:00
|
|
|
chmod a+r /etc/oidentd.conf
|
|
|
|
|
|
|
|
mkdir -p /etc/profile.d/
|
2023-05-18 10:58:51 +02:00
|
|
|
cat profile.d/mikaela.sh >/etc/profile.d/mikaela.sh
|
2015-08-22 14:10:01 +02:00
|
|
|
chmod a+r /etc/profile.d/mikaela.sh
|
|
|
|
|
|
|
|
mkdir -p /etc/systemd/system/
|
2023-05-18 10:58:51 +02:00
|
|
|
cat systemd/system/oidentd.socket >/etc/systemd/system/oidentd.socket
|
2015-08-22 14:10:01 +02:00
|
|
|
chmod a+r /etc/systemd/system/oidentd.socket
|
|
|
|
|
|
|
|
mkdir -p /etc/sysctl.d/
|
|
|
|
if [ ! -f /etc/sysctl.d/60-mikaela.conf ]; then
|
2023-05-18 10:58:51 +02:00
|
|
|
cat sysctl.d/60-mikaela.conf >/etc/sysctl.d/60-mikaela.conf
|
2023-02-21 18:08:54 +01:00
|
|
|
chmod a+r /etc/sysctl.d/60-mikaela.conf
|
2015-08-22 14:10:01 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo 'If you use systemd or oidentd you should "systemctl daemon-reload"'
|
|
|
|
echo 'and "systemctl restart oidentd".'
|
|
|
|
echo 'You should also "sysctl --system -p".'
|