blob: 78cd535c86f8c171144eec79fbce723f7b34b78a (
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
35
36
|
# 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)"
_NAME=netbox
post_install() {
echo ""
note "Follow the instructions on http://netbox.readthedocs.io/en/latest/installation/netbox/"
note "to finish the configuration, and enable and start the systemd service: "
note " systemctl enable --now netbox.service"
note ""
note "Tweak the netbox and gunicorn configuration in "
note "/etc/netbox/configuration.py and /etc/netbox/gunicorn.py"
echo ""
}
post_upgrade() {
echo ""
note "To end the migration, use the following commands:"
note " /opt/netbox/manage.py migrate"
note " /opt/netbox/manage.py collectstatic --noinput"
echo ""
}
post_remove() {
rm -fr /run/${_NAME}
userdel -f ${_NAME}
}
|