Unfortunately no. You have to comment out just part of the entire check script, all the way to the end. I also had to comment all the extra fi's:JohnYYC wrote:So if the "pre-check" section of the new script(v0.40) is commented out, the script completes without error and no need for me to comment all those other lines?
if [ "$install_lamp" = 1 ];
then
#cat /etc/group | grep www-data &> /dev/null
#checkprev=$?
#if [ "$checkprev" = 0 ];
# then
# echo -e "\a"\#\#\#\#\#\#\#\#\#Â WARNING
# echo Apache has already been installed, script ends now!
# exit
#else
install_lamp
fi
#fi
if [ "$install_cacti" = 1 ];
then
#ls /var/www/cacti &> /dev/null
#checkprev=$?
#if [ "$checkprev" = 0 ];
# then
# echo -e "\a"\#\#\#\#\#\#\#\#\#Â WARNING
# echo Cacti v$CactiVersion has already been installed, script ends now!
# exit
#else
install_cacti
fi
#fi
This stops the prechecks - but installs the items selected at the beginning of the script. Then I ran it as sudo - and the script is working as we speak!!!