[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

@how@

Verified User
Joined
Mar 2, 2005
Messages
964
Location
Kingdom of Bahrain
Hello,
update script not part from directadmin.com
**** USE IT YOUR OWN RISKS ****

*****
*****
*****

GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 2006,2007 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Update script made by Wael Isa
H188, R4008, Arad 240, Kingdom of Bahrain
https://www.wael.name
Version: 1.8.4
Release Date: 1 / 9 / 2006

*****
*****
*****

If you find update script useful, please consider to make a donation to support this freeware.
Please keep in mind that donations are welcome, but in no way required to use and distribute update.script.

You can support update.script by PayPal

update.script Version: 1.8.4
update script tested in this OS 32bit and 64bit.
  • RedHat Linux
  • RedHat Fedora
  • RedHat Enterprise
  • CentOS

    and update to
    • OpenSSL (You need to build ssh, apache, php, etc after upgrade)
    • OpenSSH (First update OpenSSL then install Webmin control panel to fix openssh if down or error in update.)
    • ClamAV
    • MRTG
    • SpamAssassin
    • ImageMagick
    • GraphicsMagick
    • Webmin control panel (You need to open one port 10000 in your firewall)

Just download/chmod
Code:
mkdir /usr/local/updatescript
cd /usr/local/updatescript
wget --no-check-certificate https://github.com/waelisa/update-script-for-DirectAdmin/raw/master/update.script
chmod 755 update.script
Run this to read how to use.
Code:
./update.script
Run this to update update.script
Code:
./update.script UPDATEME
Run this to see release date and version
Code:
./update.script DATE
Run this to clean update script folder
Code:
./update.script CLEAN
Note:-
1- Run this to clean or update update script before you use
2- Select best mirror for your server mirror.conf , if you want new mirror.conf file just delete old one in update script folder.


*****
*****
*****

ClamAV
Code:
nano -w /etc/exim.conf
before
Code:
primary_hostname =
add
Code:
av_scanner = clamd:127.0.0.1 3310
after
Code:
check_message:
add
Code:
deny message = This message contains malformed MIME ($demime_reason)
demime = *
condition = ${if >{$demime_errorlevel}{2}{1}{0}}
deny message = This message contains a virus or other harmful content ($malware_name)
demime = *
malware = *
deny message = This message contains an attachment of a type which we do not accept (.$found_extension)
demime = bat:com:pif:prf:scr:vbs
warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
save then restart exim
Code:
/sbin/service exim restart

*****
*****
*****

ImageMagick
Install ImageMagick then run add this to your php configure file
Code:
--with-imagick=/usr/local \
after
Code:
--with-freetype-dir=/usr/local/lib \
save then run
Code:
./build php n
*****
*****
*****

GraphicsMagick
Install GraphicsMagick then run add this to your php configure file
Code:
--with-gmagick=/usr/local \
after
Code:
--with-freetype-dir=/usr/local/lib \
save then run
Code:
./build php n
*****
*****
*****


Thanks for smtalk, SeLLeRoNe and ReN

*****
*****
*****

Best Regards,
Wael Isa
 
Last edited:

jca

Verified User
Joined
Oct 31, 2006
Messages
241
Location
Allen, TX
Wael thanks for this wonderful script, yet how about keeping the version number of each release installed? This way running a command would let us know what needs to be updated. This could save a lot of time.
 

HanSieT

Verified User
Joined
Jan 30, 2006
Messages
125
Location
Netherlands
I cant seem to download the script :( it says
Code:
[root@tehl33tbox updatescript]# wget http://tools.supernamechange.com/updatescript
--10:39:35--  http://tools.supernamechange.com/updatescript
           => `updatescript'
Resolving tools.supernamechange.com... 72.55.156.182
Connecting to tools.supernamechange.com|72.55.156.182|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:39:37 ERROR 404: Not Found.
Wael is your server down?

Thanks for bringing it back btw :)

*edit * link should be http://tools.supernamechange.com/update.script and not http://tools.supernamechange.com/updatescript
 
Last edited:

eymbo

Verified User
Joined
Mar 28, 2006
Messages
69
Thanks @how@ for all of your hard work mate. It has been a script that has helped me a lot.

I was wondering where freetype went to?
 

CiscoMike

Verified User
Joined
Dec 2, 2005
Messages
66
Location
Denver, CO
I love this however I'm terrified to do the openssh and/or openssl upgrades remotely. last time I did this over ssh it failed and i was locked out. and when i tried to update over KVMoIP, I kept over-running the buffer (and I used screen but the process would hang after I disconnected).

Soooo...anyone tried the SSL or SSH update or have any pointers for me? I'm on all brand new hardware but like I said, scary to try this update (for me at least, call me a *ussy lol)
 

jca

Verified User
Joined
Oct 31, 2006
Messages
241
Location
Allen, TX
I've never had any problems, yet there's only a first time. I also keep webmin in case of a fail in ssh so I can login though there to fix things.
 

CiscoMike

Verified User
Joined
Dec 2, 2005
Messages
66
Location
Denver, CO
I am having one problem:

awk '{ print ($1+1) }' cnumber.h > cnumber.temp
rm -f cnumber.h; mv cnumber.temp cnumber.h
gcc version.c
rm -f exim
gcc -o exim
rfc2047.o: In function `rfc2047_decode2':
rfc2047.c:(.text+0x3fe): undefined reference to `libiconv_open'
rfc2047.c:(.text+0x4fc): undefined reference to `libiconv'
rfc2047.c:(.text+0x5d7): undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make[1]: *** [exim] Error 1
make[1]: Leaving directory `/usr/local/updatescript/exim-4.68/build-Linux-x86_64'
make: *** [go] Error 2

Installation directory is /usr/sbin


*** /usr/local/updatescript/exim-4.68/build-Linux-x86_64/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:
Starting exim: /etc/init.d/exim: line 30: /usr/sbin/exim: No such file or directory



Exim update done
and now exim won't start. If I do a "service exim status" I get

exim dead but subsys locked
Any ideas? \usr\sbin\exim does not exist. Even a "locate exim" doesn't show a file named exim anywhere.
 

Oddis

Verified User
Joined
May 24, 2005
Messages
50
Hi Wael

I updated from MODsecurity 1.9.4 to MODsecurity 1.9.5 and found that a few scripts was blocked.

MODsecurity 1.9.4 worked okay.
I guess the best thing to do, is to go back to MODsecurity 1.9.4 and therefore I hope that you have a copy of that version.

Thanks for a good script and any help
 

jca

Verified User
Joined
Oct 31, 2006
Messages
241
Location
Allen, TX
DutchTSE try to reinstall it.

Code:
cd /usr/local/updatescript
wget http://tools.supernamechange.com/update.script
chmod 755 update.script
 

Oddis

Verified User
Joined
May 24, 2005
Messages
50
Thanks for a very quick reply Wael

Remember: You are way over my league.

I am sorry, but the information must be fed by spoon.
./update.script CLEAN
./update.script

use L,M or H ???

The two rules that are available after download is apache2.conf and mini.conf.

What I did was to firstly update MODsecurity to 1.9.5
I saw that some scripts was blocked, so I downloaded the MODsecurity Rules again. Still the same. I compared the new mini.conf with the past version and could not see any changes.

So, I assumed that it was MODsecurity 1.9.5 it selves and an lib.so, lib.a etc that is the reason for this.

Regards
Oddis
 

Heuveltje

Verified User
Joined
Nov 7, 2006
Messages
87
Location
Leek, NL
Same error as DutchTSE :
./update.script: line 1012: syntax error: unexpected end of file

Something broke the script...
 
Top