updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / nagvis / nagvis.install
blob6a55d976de79f68ea52cc20fca5064b91cfa75f7
1 post_install() {
2         cat <<EOM
3 --> Sample config files are installed with .sample extension.
4 --> Remember, these are *SAMPLE* config files.  You'll need to read
5 --> the documentation for more information on nagvis webpage.
6 --> You'll need to modify /usr/share/nagvis/etc/nagvis.conf and
7 --> /etc/httpd/conf/extra/nagvis.conf file.
9 EOM
10         if [ ! -e /usr/share/nagvis/etc/nagvis.ini.php ]; then
11                 cp /usr/share/nagvis/etc/nagvis.ini.php-sample /usr/share/nagvis/etc/nagvis.ini.php
12                 sed -e 's/usr\/local\/nagvis/usr\/share\/nagvis/' -i /usr/share/nagvis/etc/nagvis.ini.php
13                 chmod 664 /usr/share/nagvis/etc/nagvis.ini.php
14                 chown http:http /usr/share/nagvis/etc/nagvis.ini.php
15         fi
16         if [ ! -e /etc/httpd/conf/extra/nagvis.conf ]; then
17                 cp /etc/httpd/conf/extra/nagvis.conf-sample /etc/httpd/conf/extra/nagvis.conf
18                 sed -e 's/@NAGVIS_PATH@/\/usr\/share\/nagvis/' -e 's/@NAGVIS_WEB@/\/nagvis/' -i /etc/httpd/conf/extra/nagvis.conf
19         fi