|
|
@ -82,12 +82,20 @@ function ee_lib_package_check() |
|
|
|
done |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Pre checks to avoid later screw ups |
|
|
|
# Checking EasyEngine (ee) log directory |
|
|
|
if [ ! -d $EE_LOG_DIR ]; then |
|
|
|
ee_lib_echo "Creating EasyEngine (ee) log directory, please wait..." |
|
|
|
mkdir -p $EE_LOG_DIR || ee_lib_error "Unable to create log directory $EE_LOG_DIR, exit status = " $? |
|
|
|
|
|
|
|
# Create EasyEngine log files |
|
|
|
touch /var/log/easyengine/ee.log /var/log/easyengine/install.log /var/log/easyengine/update.log /var/log/easyengine/error.log \ |
|
|
|
|| ee_lib_error "Unable to create EasyEngine log files in $EE_LOG_DIR, exit status = " $? |
|
|
|
|
|
|
|
# Keep EasyEngine log folder accessible to root only |
|
|
|
chmod -R 700 /var/log/easyengine \ |
|
|
|
|| ee_lib_error "Unable to change permissions for EasyEngine log folder, exit status = " $? |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
# Install required packages |
|
|
|