summaryrefslogtreecommitdiffhomepage
path: root/dist-assets/linux/after-install.sh
blob: b75b72dc315d6af0343f03deb5ab1759e52a62c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
set -eu

chmod u+s "/usr/bin/mullvad-exclude"

if which systemctl &> /dev/null; then
    systemctl enable "/opt/Mullvad VPN/resources/mullvad-daemon.service"
    systemctl start mullvad-daemon.service
elif /sbin/init --version | grep upstart &> /dev/null; then
    ln -s "/opt/Mullvad VPN/resources/mullvad-daemon.conf" /etc/init/
    initctl reload-configuration
    start mullvad-daemon
fi