When upgrading an application, webapp-config does not ignore trailing slashes in the <directory> parameter (--dir), as shown in the example below: Horde 3.0.6 is installed in the directory "horde": # webapp-config -I -h <host> -d horde horde 3.0.6 # cat /var/db/webapps/horde/3.0.6/installs 1130581521 root root /var/www/<host>/htdocs/horde # webapp-config --list-installs /var/www/<host>/htdocs/horde After upgrading to 3.0.8 using the directory "horde/", webapp-config still thinks 3.0.6 is installed: # webapp-config -U -h <host> -d horde/ horde 3.0.8 # webapp-config --list-installs /var/www/<host>/htdocs/horde /var/www/<host>/htdocs/horde/ # cat /var/db/webapps/horde/3.0.6/installs 1130581521 root root /var/www/<host>/htdocs/horde # cat /var/db/webapps/horde/3.0.8/installs 1134411797 root root /var/www/<host>/htdocs/horde/ I think webapp-config should ignore trailing slashes in the <directory> parameter.
Please test with webapp-config-1.50.3 and reopen if necessary.
The issue is still present with webapp-config-1.50.3: Installing horde 3.0.8 in "horde": # webapp-config -I -h <host> -d horde horde 3.0.8 [snip] # webapp-config --list-installs -V * Installs for horde-3.0.8 * /var/www/<host>/htdocs/horde Upgrading to horde 3.0.9 in "horde/": # webapp-config -U -h <host> -d horde/ horde 3.0.9 * Upgrading horde-3.0.8 to horde-3.0.9 * Installed by root on 2005-12-16 22:37:56 * Config files owned by 0:0 !found /var/www/<host>/cgi-bin !found /var/www/<host>/error !found /var/www/<host>/icons !empty config --- /var/www/<host>/htdocs/horde/ * Installation at "/var/www/<host>/htdocs/horde/" could not be found in the database file. Check the entries in "/var/db/webapps/horde/3.0.8/installs"! * Remove whatever is listed above by hand * Creating required directories * Linking in required files * This can take several minutes for larger apps * Files and directories installed * Install completed - success # webapp-config --list-installs -V * Installs for horde-3.0.8 * /var/www/<host>/htdocs/horde * Installs for horde-3.0.9 * /var/www/<host>/htdocs/horde/
Please test with webapp-config-1.50.6 and reopen if necessary.
It is still a problem in webapp-config 1.50.10, pleas re-open! I tried to upgrade my squirrelmail installation using webapp-config -U -h <somehostname> -d / squirrelmail 1.4.6 resulting in having the following contents of /var/db/webapps/squirrelmail/*/installs: 1.4.5-r1/installs: 1138880222 root root /var/www/webmail.vinsander.se/htdocs/ 1.4.6/installs: 1142240037 0 0 /var/www/webmail.vinsander.se/htdocs The original instance of squirrelmail was installed using: webapp-config -I -h <somehost> -d / squirrelmail <version> To solve this I would have to manually remove /var/db/webapps/squirrelmail/1.4.5-r1 Or is there another way?
I should probably add that the previous squirrelmail installation was performed using webapp-config 1.11