summarylogtreecommitdiffstats
path: root/install
blob: 4f995019d5b753bff56b91dd8cccd6af29db3f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Colors
note() {
    printf "${BLUE}==>${ALL_OFF}${BOLD} NOTE:${ALL_OFF} ${1}\n"
}

ALL_OFF="$(tput sgr0)"
BOLD="$(tput bold)"
BLUE="${BOLD}$(tput setaf 4)"
GREEN="${BOLD}$(tput setaf 2)"

post_install() {

    echo
    note "Select the correct path to your JAVA_HOME in /etc/conf.d/bgerp"
    note "chown -R bgerp:bgerp /opt/bgerp"
    note
    note "To run as bgerp user if needed:"
    note "mkdir /etc/systemd/system/bgerp.service.d"
    note "touch /etc/systemd/system/bgerp.service.d/override.conf"
    note "As a result, it should turn out:"
    note "cat /etc/systemd/system/bgerp.service.d/override.conf"
    note "[Service]"
    note "User=bgerp"
    note "Group=bgerp"
    note
    note "Next, see the documentation on the site https://bgerp.ru"
    echo
}

post_update() {
    echo
    note "See the documentation on the site https://bgerp.ru"
    echo
}