blob: 1faa132ea59f5733480e5194d17d1d02c81430e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
post_install() {
getent passwd jamulus &>/dev/null || {
echo "Creating jamulus user.."
useradd --system --no-create-home -g nobody -s /bin/false jamulus &>/dev/null
}
cat <<HERE
Configure server variables:
sudo systemctl edit jamulus.service
paste the following text and adjust according to your needs
# central_server => https://github.com/corrados/jamulus/wiki/Central-Servers
# country ID => https://doc.qt.io/qt-5/qlocale.html#Country-enum
[Service]
Environment=central_server="name_of_the_server"
Environment=server_info="yourServerName;yourCity;[country ID]"
systemctl daemon-reload
To start the service:
sudo systemctl start jamulus
To enable the service at boot:
sudo systemctl enable jamulus
HERE
}
post_remove() {
echo "Consider removing jamulus user from the system"
}
op=$1
shift
$op "$@"
|