blob: 5660a8b9e3403e654ede6d0333d03641a68ce5ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
post_install() {
mkdir -m0755 /home/slim-root || exit 1
useradd -M -G wheel,http,audio,video,root,sys,mem,utmp --home=/home/slim-root -s /bin/sh slim-root || exit 1
chown slim-root:root -R /home/slim-root
chown slim-root:root -R /usr/share/slimjet || exit 1
setcap cap_setuid,cap_sys_chroot,cap_sys_admin+pei /usr/share/slimjet/slimjet-sandbox || exit 1
chown root:root /usr/share/slimjet/slimjet-sandbox || exit 1
chmod 4755 /usr/share/slimjet/slimjet-sandbox || exit 1
}
post_remove() {
userdel --force --remove slim-root || exit 1
}
|