*Old* versions of stuff not deleted

Dougy

Verified User
Joined
Sep 1, 2010
Messages
127
I was looking in /var/www/html and all the old versions are still installed. This is not secure at all.

[root@corp01 html]# ls
[root@corp01 html]# ls -al
total 76K
4.0K drwxr-xr-x 16 webapps webapps 4.0K Mar 20 10:20 .
4.0K drwxr-xr-x 9 root root 4.0K Aug 31 2010 ..
4.0K -rw-r--r-- 1 webapps webapps 44 Aug 31 2010 index.html
4.0K -rw-r--r-- 1 webapps webapps 20 Sep 1 2010 index.php
0 lrwxrwxrwx 1 webapps webapps 45 Mar 20 04:04 phpMyAdmin -> /var/www/html/phpMyAdmin-3.3.10-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Mar 20 04:04 phpMyAdmin-3.3.10-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Sep 1 2010 phpMyAdmin-3.3.5.1-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Sep 2 2010 phpMyAdmin-3.3.6-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Sep 8 2010 phpMyAdmin-3.3.7-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Dec 1 04:02 phpMyAdmin-3.3.8.1-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Oct 28 04:04 phpMyAdmin-3.3.8-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Feb 9 04:02 phpMyAdmin-3.3.9.1-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Feb 12 04:02 phpMyAdmin-3.3.9.2-all-languages
4.0K drwxr-xr-x 11 webapps webapps 4.0K Jan 4 04:02 phpMyAdmin-3.3.9-all-languages
4.0K -rw-r--r-- 1 webapps webapps 68 Aug 31 2010 redirect.php
0 lrwxrwxrwx 1 webapps webapps 19 Feb 16 04:02 roundcube -> roundcubemail-0.5.1
4.0K drwxr-xr-x 11 webapps webapps 4.0K Sep 1 2010 roundcubemail-0.4
4.0K drwxr-xr-x 10 webapps webapps 4.0K Nov 4 04:02 roundcubemail-0.4.2
4.0K drwxr-xr-x 10 webapps webapps 4.0K Jan 13 04:02 roundcubemail-0.5
4.0K drwxr-xr-x 10 webapps webapps 4.0K Feb 16 04:02 roundcubemail-0.5.1
0 lrwxrwxrwx 1 webapps webapps 19 Sep 1 2010 squirrelmail -> squirrelmail-1.4.21
4.0K drwxr-xr-x 16 webapps webapps 4.0K Sep 1 2010 squirrelmail-1.4.21
0 lrwxrwxrwx 1 webapps webapps 9 Sep 1 2010 webmail -> roundcube

Why are we doing that?
 
clean_old_tarballs - execute "./build clean_old_tarballs" every time. Possible values: yes/no (default: yes).

I thought this would delete them?
 
Hello,

Likely, this option needs to be enabled:
Code:
./build set clean_old_webapps yes
as that's what triggers the removal of extra folders in /var/www/html, when ./build clean is called. Note ./build clean is automatically called each time build is run (for anything) if you've got "clean=yes" set in the options.conf.

John
 
Well......

[root@corp01 custombuild]# ./build set clean_old_webapps yes
Changed clean_old_webapps option from yes to yes
[root@corp01 custombuild]#
 
Hello,

And what about the "clean" option?
If those webapps items are not enabled in the options.conf, they won't be cleaned.
Code:
./build set clean yes
./build set phpmyadmin yes
The last thing to try is doing an actual ./build clean, to see what happens.

John
 
Back
Top