blob: b3156173b50e97b1a1bf6253aa54f90be97fb4d3 (
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
|
post_install() {
id livepeer 2>/dev/null || useradd -r -U -M -s /bin/false -d /var/lib/livepeer livepeer
mkdir -p "/var/lib/livepeer"
chown -R livepeer:livepeer /var/lib/livepeer /var/cache/livepeer /etc/go-livepeer
chmod -R 700 /var/lib/livepeer /var/cache/livepeer /etc/go-livepeer
echo -e "####################################################"
echo -e "## Before first start you must edit the Livepeer ##"
echo -e "## configuration file with your orchestrator info ##"
echo -e "## /etc/go-livepeer/livepeer.conf ##"
echo -e "## ##"
echo -e "## Active Orchestrators should copy the existing ##"
echo -e "## ~/.lpData directory along with the wallet and ##"
echo -e "## orchestrator password files to ##"
echo -e "## /var/lib/livepeer before starting the service. ##"
echo -e "## ##"
echo -e "## Update these values with your own and then run ##"
echo -e "## sudo systemctl enable --now livepeer.service ##"
echo -e "## ##"
echo -e "## Support may be found at Livepeer's official ##"
echo -e "## community channels on their forum & Discord - ##"
echo -e "## https://discord.gguaPhtyrWsF ##"
echo -e "## https://forum.livepeer.org ##"
echo -e "####################################################"
}
post_upgrade() {
post_install
}
post_remove() {
userdel livepeer
groupdel livepeer
}
|