blob: 77af0733e6dcca37b47f5461eff50fab3ae4dcb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
if ! getent passwd isolate >/dev/null ; then
echo ">>> Adding isolate user..."
useradd -g isolate --system -F -d /nonexistent -s /usr/bin/nologin -M isolate
fi
echo
echo ">>> If you want to run the isolate command without sudo, you should add"
echo ">>> yourself to the isolate group, like this:"
echo ">>> # sudo usermod -a -G isolate <your user>"
echo ">>> However, keep in mind that:"
echo ">>> 1. You will need to logout, in order to make the change effective"
echo ">>> 2. No untrusted user should ever be allowed in the isolate group,"
echo ">>> as they may exploit the isolate command to gain root access"
echo
}
post_upgrade() {
post_install "$@"
}
|