summarylogtreecommitdiffstats
path: root/adguardhome-bin.install
blob: 37970cf02ed764d3970e0ad5b7d32c0ffa4afcc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
    rm /usr/lib/systemd/system/adguardhome.service
}