summarylogtreecommitdiffstats
path: root/install.sh
blob: 4d02183d6b3b28f18da4af08dc2c278590006f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
_pkgname="skypeforlinux"
_userns="kernel.unprivileged_userns_clone"

post_install() {
    userns="$(sysctl -n $_userns 2>/dev/null)"
    if [[ $? -ne 0 || $userns -ne 1 ]]; then
	echo -e "\e[34;1m"
	echo ===
	echo === !!! WARNING !!!
	echo ===
	echo === $_userns is not set on this system.
	echo === You will need to set it manually so $_pkgname can start.
	echo ===
	echo -e "\033[0m"
    fi
}

post_upgrade() {
    post_install
}