diff options
Diffstat (limited to 'skypeforlinux-stable-bin-install')
-rw-r--r-- | skypeforlinux-stable-bin-install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/skypeforlinux-stable-bin-install b/skypeforlinux-stable-bin-install new file mode 100644 index 000000000000..6ed926f1f68d --- /dev/null +++ b/skypeforlinux-stable-bin-install @@ -0,0 +1,20 @@ +_pkgname="skypeforlinux" +_userns="kernel.unprivileged_userns_clone" + +post_install() { + userns="$(sysctl -n $_userns 2>/dev/null)" + if [[ $? -eq 0 && $userns -ne 1 ]]; then + echo -ne "\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 -ne "\033[0m" + fi +} + +post_upgrade() { + post_install +} |