distro: add some install hooks

This commit is contained in:
Matheus
2025-09-12 19:28:39 -03:00
parent b4e6540f43
commit 9c4169bb0b
9 changed files with 54 additions and 10 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/bash
case "$1" in
pre)
;;
post)
mkdir -p /var/log
mkdir -p /var/run
mkdir -p /var/lib
;;
esac
exit 0
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/bash
case "$1" in
pre)
;;
post)
chmod 4755 /usr/bin/passwd
chmod 4755 /bin/su
chmod 4755 /usr/bin/chsh
chmod 4755 /usr/bin/chfn
;;
esac
exit 0
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/bash
case "$1" in
pre)
;;
post)
chmod 4755 /usr/bin/sudo
;;
esac
exit 0