summarylogtreecommitdiffstats
path: root/adguardhome-bin.install
blob: 57fb0e0cfa16256de22118c0efc78c5c0771a658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
    echo "Run 'sudo /var/lib/adguardhome/AdGuardHome -s run' to manually start AdGuardHome."
    echo "Run 'sudo /var/lib/adguardhome/AdGuardHome -s install' to install AdGuardHome's as a service using the package service install."
    echo "Since the service file is already copied by installing this package, you can always skip the last step (package service install) and directly start/enable it using systemctl. So:"
    echo "=> Start:  'sudo systemctl start AdGuardHome'"
    echo "=> Enable: 'sudo systemctl enable AdGuardHome'"
    echo "Once AdGuardHome is running, go to http://localhost:3000 to configure it."
}

post_upgrade() {
    post_install
}

post_remove() {
    rm -rf /var/lib/adguardhome
    rm /etc/systemd/system/AdGuardHome.service
}