summarylogtreecommitdiffstats
path: root/passless.install
blob: 5664f44000967cd6c2346075e7e5ade486ec93e2 (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
45
46
47
post_install() {
    echo ""
    echo "==> Passless has been installed successfully!"
    echo ""

    echo "    The 'fido' group has been created. Add your user to it:"
    echo "      sudo usermod -a -G fido \$USER"
    echo ""
    echo "    Load the uhid kernel module:"
    echo "      sudo modprobe uhid"
    echo ""
    echo "    Create a config directory and write the default config:"
    echo "      mkdir -p ~/.config/passless"
    echo "      passless config print > ~/.config/passless/config.toml"
    echo ""
    echo "    Reload udev rules:"
    echo "      sudo udevadm control --reload-rules && sudo udevadm trigger"
    echo ""
    echo "    Log out and back in for group changes to take effect, then:"
    echo ""
    echo "    To run passless as a systemd user service:"
    echo "      systemctl --user enable passless.service"
    echo "      systemctl --user start passless.service"
    echo ""
    echo "    For more details, see: https://github.com/pando85/passless"
    echo ""
}

post_upgrade() {
    echo ""
    echo "==> Passless has been upgraded."
    echo ""

    echo "    If running as a systemd service, restart it with:"
    echo "      systemctl --user restart passless.service"
    echo ""
}

post_remove() {
    echo ""
    echo "==> Passless has been removed."
    echo ""
    echo "    To also disable the systemd service:"
    echo "      systemctl --user disable passless.service"
    echo "      systemctl --user daemon-reload"
    echo ""
}