blob: 67bf0b0c317c6ec9818a29d7fed92974a1f6243d (
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
|
post_install() {
cat <<EOF
1. Copy the config file to ~/.config:
mkdir ~/.config/reddit-placebot
cp /usr/lib/node_modules/reddit-placebot/config.js ~/.config/reddit-placebot
Create a file users.json in ~/.config/reddit-placebot/users.json as follows:
{
"YourRedditUserName": "YourRedditPassword",
"OtherAccount": "OtherPassword",
"MoreThrowaways": "MorePasswords"
}
then start the service using
systemctl --user start reddit-placebot
and monitor the output using
journalctl --user --follow --unit reddit-placebot
EOF
}
post_upgrade() {
post_install
}
|