summarylogtreecommitdiffstats
path: root/whoogle.install
blob: 018c523d9cee32e881c0ca422e13b1b0af3918b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
    mkdir -p /opt/whoogle-search/
    chown -R whoogle:whoogle /opt/whoogle-search/
    echo "Enable the systemd unit and visit localhost:5000 to start searching!"
    echo "If the search engine can't be reached, execute 'chown -R whoogle:whoogle /opt/whoogle-search/' to fix permissions."
}

post_upgrade() {
    chown -R whoogle:whoogle /opt/whoogle-search/
}

post_remove() {
    echo "Configuration files are still present in /opt/whoogle-search, run 'sudo rm -r /opt/whoogle-search' to remove them."
}