# Install script for QNX 

# Make this point to your cgi-bin directory
cp Count.cgi /usr/local/etc/httpd/cgi-bin/.

# This program have been compiled for QNX and espect to find its
# configuration files in this directory /usr/local/etc/Counter/

mkdir -p /usr/local/etc/Counter
cp -R conf /usr/local/etc/Counter/conf
cp -R data /usr/local/etc/Counter/data
cp -R digits /usr/local/etc/Counter/digits
cp -R logs /usr/local/etc/Counter/logs

# Change ownership of the data directory to whatever your httpd set its 
# uid:gid  Mine is user 'www' group 'www' (see your User and Group directive 
# in your /usr/local/etc/httpd/conf/httpd.conf file). This is to give write 
# permission to httpd when it needs to create a counter data file.
chown www:www /usr/local/etc/Counter/data

echo "Now have a look at /usr/local/etc/Counter/conf/count.conf and"
echo "make the changes so it points to YOUR server name."
