diff options
Diffstat (limited to 'install')
-rw-r--r-- | install | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/install b/install new file mode 100644 index 000000000000..4f995019d5b7 --- /dev/null +++ b/install @@ -0,0 +1,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 +} |