mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
distro: add some install hooks
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
case "$1" in
|
||||
pre)
|
||||
|
||||
;;
|
||||
post)
|
||||
chmod 4755 /usr/bin/sudo
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user