Script running before updating directadmin

rpr

Verified User
Joined
Oct 20, 2010
Messages
65
Run script / commandos before updating directadmin

Hi,

I am using nginx webserver with some custom modules.
Is it possible to automatically run a script pre updating nginx just to make sure the latest version of the modules are downloaded tot the modules directory?
 
Last edited:
ello,

You can use configure.nginx for it.

copy

/usr/local/directadmin/custombuild/configure/nginx/configure.nginx

to

/usr/local/directadmin/custombuild/custom/nginx/configure.nginx

and populate it with your own instructions between #!/bin/sh and ./configure \

Something like:

Code:
#!/bin/sh

wget ....
tar -zxvf ...

./configure \
 
Back
Top