summarylogtreecommitdiffstats
path: root/hadlink-bin.install
blob: f209d271f7edc949c744c070ee967e84c3f8a720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
    echo ":: To configure hadlink, edit /etc/hadlink/hadlink.conf"
    echo ":: Create a secret for the shorten service:"
    echo "::   echo \"HADLINK_SECRET=\$(openssl rand -hex 16)\" | sudo tee /etc/hadlink/secret.conf > /dev/null"
    echo "::   sudo chmod 600 /etc/hadlink/secret.conf"
    echo ":: Start services with:"
    echo "::   sudo systemctl enable --now hadlink-shorten hadlink-redirect"
}

post_upgrade() {
    post_install
}