summarylogtreecommitdiffstats
path: root/torrserver.install
blob: 3355a8c57beb803b1aa166def58ffda2d514497c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all_off="$(tput sgr0)"
bold="$(tput bold)"
blue="$(tput setaf 4)"
yellow="$(tput setaf 3)"

msg_blue() {
    printf "${bold}${blue}==>${all_off}${bold} $1${all_off}\n"
}

note() {
    printf "${bold}${blue}==>${all_off}${yellow} NOTE: ${bold}$1${all_off}\n"
}

post_install() {
    note "${blue}In order to enabled torrserver do ${yellow}systemctl --user enable --now torrserver"
}

post_upgrade() {
    note "${blue}In order to upgrade torrserver do ${yellow}systemctl --user daemon-reload && systemctl --user restart torrserver"
}