#!/bin/bash
#
#########################################################################################
# Script: 		absmenu_install.sh
# Description: 	Install script (set rights etc.)
# Author: 		ABS Laundry Business Solutions
# Version: 		4.5
#### Changelog of script ################################################################
# Date        Author    Version 	Change    
# 15-May-2011 JMI		1.0			Initial version
#########################################################################################

chmod a+x *.sh
chmod a+x ../config/*.sh
chmod a+x ../../absmenu.sh

dos2unix *.sh
dos2unix ../config/*.sh
dos2unix ../../absmenu.sh

if [ ! -e ../config/absmenu_config.sh ]
then
    if [ -e ../config/sample_absmenu_config.sh ]
    then
        cp ../config/sample_absmenu_config.sh ../config/absmenu_config.sh
    else
        echo NO ABSMENU_CONFIG.SH AND NO SAMPLE_ABSMENU_CONFIG.SH FOUND
    fi
fi

if [ ! -e ../config/service_registration.cfg ]
then
    if [ -e ../config/sample_service_registration.cfg ]
    then
        cp ../config/sample_service_registration.cfg ../config/service_registration.cfg
    else
        echo NO SERVICE_REGISTRATION.CFG AND NO SAMPLE_SERVICE_REGISTRATION.CFG FOUND
    fi
fi