[tools] update.script

Do you like use update.script ?

  • yes, all time

    Votes: 221 69.1%
  • no, some time

    Votes: 44 13.8%
  • some time

    Votes: 55 17.2%

  • Total voters
    320

chatwizrd

Verified User
Joined
Jul 3, 2005
Messages
2,007
There were a few } missing in the script.

Edit update.script

Before the line doMODsecurityRulesL() add

}

and before the line doMODsecurityRulesM() add

}

So that it looks like

Code:
}

doMODsecurityRulesL()
and

Code:
}

doMODsecurityRulesM()
Save the file and exit.
 

Oddis

Verified User
Joined
May 24, 2005
Messages
50
Hi.
After I added the brackets, the rules: L, M and H were listed as option for installation.

When I tried to use one of them, the script only stated GNU statement.

I am sure this will be solved and the yearly donation will be given to Wael.

After using so many hours to try to keep my box up to date, it's really a
relief to have a script like this.

Thanks to chatwizrd too for spending time to help fixing the small bug in the script.

Regards
Oddis
 

felosi

Verified User
Joined
Jun 17, 2006
Messages
152
latest version wont run, syntax error

./update.script: line 1012: syntax error: unexpected end of file
 

Oddis

Verified User
Joined
May 24, 2005
Messages
50
Hi.
As I wrote in my past post:
With the extra brackets you get rid of the error message: line 1012: syntax error
but the script is still halting.
For my case: If I choose one of the rulesets for MODsecurity, the script only return to show the GNU message.


Regards
Oddis
 

@how@

Verified User
Joined
Mar 2, 2005
Messages
964
Location
Kingdom of Bahrain
There were a few } missing in the script.

Edit update.script

Before the line doMODsecurityRulesL() add

}

and before the line doMODsecurityRulesM() add

}

So that it looks like

Code:
}

doMODsecurityRulesL()
and

Code:
}

doMODsecurityRulesM()
Save the file and exit.

:) thanks,

Wael
 

Oddis

Verified User
Joined
May 24, 2005
Messages
50
Hi.
The script is downloaded again and it is working, but now it seems like that the needed files for Modsecurity rules can not be found.

I have tried all 3 rule-sets, and get this message:

--------------------------------------------------
updatescript]# ./update.script MODsecurityRulesM
mkdir: cannot create directory `modsecurity': File exists
--14:13:49-- http://www.supernamechange.com/tools/modsecurity/mini.conf
Resolving www.supernamechange.com... 72.55.156.182
Connecting to www.supernamechange.com|72.55.156.182|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
14:13:49 ERROR 404: Not Found.
 
Last edited:

venon

Verified User
Joined
Jul 16, 2006
Messages
52
how can I fix?
this my exin is down now . thanks

*** /usr/local/updatescript/exim-4.68/build-Linux-i386/exim does not exist or is
empty
*** Have you built Exim successfully?
*** Exim installation failed ***
make: *** [install] Error 1
cp: cannot stat `/usr/sbin/exim-4.68-1': No such file or directory
chmod: cannot access `/usr/sbin/exim': No such file or directory
Shutting down exim: /etc/init.d/exim: line 40: kill: (23609) - No such process

Starting exim: /etc/init.d/exim: line 30: /usr/sbin/exim: No such file or direct
ory
 

@how@

Verified User
Joined
Mar 2, 2005
Messages
964
Location
Kingdom of Bahrain
Hi.
The script is downloaded again and it is working, but now it seems like that the needed files for Modsecurity rules can not be found.

I have tried all 3 rule-sets, and get this message:

--------------------------------------------------
updatescript]# ./update.script MODsecurityRulesM
mkdir: cannot create directory `modsecurity': File exists
--14:13:49-- http://www.supernamechange.com/tools/modsecurity/mini.conf
Resolving www.supernamechange.com... 72.55.156.182
Connecting to www.supernamechange.com|72.55.156.182|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
14:13:49 ERROR 404: Not Found.

run clean and try :)

Wael
 

@how@

Verified User
Joined
Mar 2, 2005
Messages
964
Location
Kingdom of Bahrain
how can I fix?
this my exin is down now . thanks

*** /usr/local/updatescript/exim-4.68/build-Linux-i386/exim does not exist or is
empty
*** Have you built Exim successfully?
*** Exim installation failed ***
make: *** [install] Error 1
cp: cannot stat `/usr/sbin/exim-4.68-1': No such file or directory
chmod: cannot access `/usr/sbin/exim': No such file or directory
Shutting down exim: /etc/init.d/exim: line 40: kill: (23609) - No such process

Starting exim: /etc/init.d/exim: line 30: /usr/sbin/exim: No such file or direct
ory
back to old one
cd /usr/local/directadmin/scripts
./exim.sh

Wael
 

venon

Verified User
Joined
Jul 16, 2006
Messages
52
now is back working but on version Exim 4.60.

any way to go atlest to version 4.67? or make 368 works for me ?


thank
 

Oddis

Verified User
Joined
May 24, 2005
Messages
50
Did ./update.script CLEAN

Files found, updated without any problem.

A small donation is given to keep you going with the script.
It is really appreciated.


Have a nice day to you to :)

Regards
Oddis
 

CiscoMike

Verified User
Joined
Dec 2, 2005
Messages
66
Location
Denver, CO
look at my fix on Page 1. I link to a post that tells you EXACTLY how to fix the Exim errors when compiling. You have to make an addition to Local/Makefile ***after*** the initial compiling fails, then you have to make and make install yourself.

It works fine, just breaks on CentOS 5.
 

venon

Verified User
Joined
Jul 16, 2006
Messages
52
try this
./update.script CLEAN
then
./update.script
use rpm

Wael
now I get this error :

make[1]: *** [exim] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/da_exim-4.68/build-Linux-i386'
make: *** [go] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.52597 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.52597 (%build)
error: open of da_exim-4.68.i386.rpm failed: No such file or directory
Shutting down exim: /etc/init.d/exim: line 40: kill: (31673) - No such process

Starting exim: /etc/init.d/exim: line 26: 1389 Floating point exception/usr/sbin/exim $EXIM_OPTS -oP /var/run/exim.pi
d






look at my fix on Page 1. I link to a post that tells you EXACTLY how to fix the Exim errors when compiling. You have to make an addition to Local/Makefile ***after*** the initial compiling fails, then you have to make and make install yourself.

It works fine, just breaks on CentOS 5.

using this I get this error:


18:42:43 (229.16 KB/s) - `da_exim-4.68-1.i386.rpm.2' saved [1194141/1194141]

[root@weboffshore4 ~]# rpm -Uvh --force --nodeps da_exim-4.68-1.i386.rpm
Preparing... ########################################### [100%]
1:da_exim ########################################### [100%]
[root@weboffshore4 ~]# service exim start
Starting exim: /etc/init.d/exim: line 26: 1577 Floating point exception/usr/sbin/exim $EXIM_OPTS -oP /var/run/exim.pi
d

[root@weboffshore4 ~]#


thanks for all the reply.
 

snaaps

Verified User
Joined
Jan 29, 2005
Messages
230
Location
Netherlands
modsecurity and custombuild

Hello,
Whe have installed DA with the custumbuild.
Now the following error generates when I tried to install modsecurity:

PHP:
Length: 467,173 (456K) [application/x-tar]

100%[====================================>] 467,173        1.07M/s

15:54:25 (1.07 MB/s) - `modsecurity-apache_1.9.5.tar.gz' saved [467173/467173]

cp: cannot create regular file `/usr/local/directadmin/customapache/mod_security.c': No such file or directory
./update.script: line 1091: cd: /usr/local/directadmin/customapache/: No such file or directory
/var/www/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_RE

When whe ignore these error and add the rules to the httpd.conf file there are 2 errors:

PHP:
Syntax error on line 155 of /etc/httpd/conf/httpd.conf:
mod_security: Failed to open the audit log file: /etc/httpd/logs/audit_log

and:

Syntax error on line 159 of /etc/httpd/conf/httpd.conf:
mod_security: Failed to open the debug log file: /etc/httpd/logs/modsec_debug_log
When whe disabled these 2 lines apache will run..
 
Last edited:

myH2Oservers

Verified User
Joined
Mar 13, 2006
Messages
243
Location
Netherlands
Wael,

Are you sure exim 4.68 update is working for debian 3.1/4.0?
If i look at the source code of update.script, i dont think the update will work.
Maybe you have to change the topicstart.
 
Top