blob: 492218d4bdb0689118d596852505cac7a3c17964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
post_install() {
echo ""
echo "Enable falcond service:"
echo "systemctl enable falcond"
echo ""
echo "You must add root and your user to the falcond group in order to add/remove/edit"
echo "profiles and perform a full reboot:"
echo "sudo mkdir -p /usr/share/falcond/profiles/user"
# Create falcond group if it doesn't exist
echo "sudo groupadd --system falcond"
# Set ownership and permissions
# make that group own /usr/share/falcond/profiles/user
echo "sudo chown root:falcond /usr/share/falcond/profiles/user"
# chmod to 2775 (rwxrwsr-x) to allow group write and setgid for inheritance,
# ensuring access for authorized users while maintaining security
echo "sudo chmod 2775 /usr/share/falcond/profiles/user"
# Add root to the group
echo "sudo usermod -aG falcond root"
# Add the user to the group
echo "sudo usermod -aG falcond $(whoami)"
echo ""
echo "The configuration file will be generated automatically on first run "
echo "located at /etc/falcond/config.conf"
echo ""
}
|