Skip to content

Commit b6b80b9

Browse files
committed
Merge remote-tracking branch 'evan-a-a/remove_upstart'
2 parents 845be5b + 6e3ee60 commit b6b80b9

File tree

5 files changed

+8
-27
lines changed

5 files changed

+8
-27
lines changed

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ Line wrap the file at 100 chars. Th
4343
#### Android
4444
- Remove WireGuard view as it's no longer needed with the new way of managing devices.
4545

46+
#### Linux
47+
- Remove upstart init configuration files
48+
4649
### Fixed
4750
- Fix time added view displayed due to incorrect local clock.
4851

Diff for: dist-assets/linux/after-install.sh

+2-8
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,5 @@ set -eu
33

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

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

Diff for: dist-assets/linux/before-remove.sh

+3-8
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@ if [[ "$1" == "upgrade" ]]; then
1414
exit 0;
1515
fi
1616

17-
if which systemctl &> /dev/null; then
18-
# the user might've disabled or stopped the service themselves already
19-
systemctl stop mullvad-daemon.service || true
20-
systemctl disable mullvad-daemon.service || true
21-
elif /sbin/init --version | grep upstart &> /dev/null; then
22-
stop mullvad-daemon
23-
rm -f /etc/init/mullvad-daemon.conf
24-
fi
17+
# the user might've disabled or stopped the service themselves already
18+
systemctl stop mullvad-daemon.service || true
19+
systemctl disable mullvad-daemon.service || true
2520

2621
pkill -x "mullvad-gui" || true
2722

Diff for: dist-assets/linux/mullvad-daemon.conf

-6
This file was deleted.

Diff for: gui/tasks/distribution.js

-5
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ const config = {
155155
{ from: distAssets('mullvad-setup'), to: '.' },
156156
{ from: distAssets('libtalpid_openvpn_plugin.so'), to: '.' },
157157
{ from: distAssets('binaries/x86_64-unknown-linux-gnu/openvpn'), to: '.' },
158-
{ from: distAssets('linux/mullvad-daemon.conf'), to: '.' },
159158
{ from: distAssets('linux/mullvad-daemon.service'), to: '.' },
160159
],
161160
},
@@ -171,8 +170,6 @@ const config = {
171170
distAssets('linux/before-remove.sh'),
172171
'--config-files',
173172
'/opt/Mullvad VPN/resources/mullvad-daemon.service',
174-
'--config-files',
175-
'/opt/Mullvad VPN/resources/mullvad-daemon.conf',
176173
distAssets('mullvad') + '=/usr/bin/',
177174
distAssets('mullvad-exclude') + '=/usr/bin/',
178175
distAssets('linux/problem-report-link') + '=/usr/bin/mullvad-problem-report',
@@ -196,8 +193,6 @@ const config = {
196193
distAssets('linux/post-transaction.sh'),
197194
'--config-files',
198195
'/opt/Mullvad VPN/resources/mullvad-daemon.service',
199-
'--config-files',
200-
'/opt/Mullvad VPN/resources/mullvad-daemon.conf',
201196
distAssets('mullvad') + '=/usr/bin/',
202197
distAssets('mullvad-exclude') + '=/usr/bin/',
203198
distAssets('linux/problem-report-link') + '=/usr/bin/mullvad-problem-report',

0 commit comments

Comments
 (0)