summarylogtreecommitdiffstats
path: root/altserver-linux-bin.install
blob: 807ced4da92e93d77dfab1d61831826c186d39c9 (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
36
37
38
39
40
41
42
43
44
post_install() {
    cat << EOF

==> AltServer-Linux has been installed. Some manual setup is required.

1.  Enable required services as a regular user (not root):
    systemctl --user enable --now netmuxd.service
    systemctl --user enable --now altserver.service

2.  This package requires an Anisette server running via Docker.
    If you haven't already, add your user to the 'docker' group:
    sudo usermod -aG docker \$USER

    IMPORTANT: You must log out and log back in for this change to take effect.

3.  Once you have logged back in, start the Anisette server container:
    docker run -d --restart always --name anisette-v3 -p 6969:6969 --volume anisette-v3_data:/home/Alcoholic/.config/anisette-v3/lib/ dadoum/anisette-v3-server

4.  Check the status of the services:
    systemctl --user status netmuxd.service altserver.service

5.  Follow the official README for pairing your device.

EOF
}

post_upgrade() {
    post_install
}

post_remove() {
    cat << EOF

==> AltServer-Linux has been removed.

    You may want to manually stop and remove the Docker container:
    docker stop anisette-v3
    docker rm anisette-v3

    And disable the user services:
    systemctl --user disable netmuxd.service altserver.service

EOF
}