Howdie

Scenario:

Allow developers to submit new application packages to a market server. Developers run a bash script which contains a cURL call to market server (localhost/market/submit/$app-name). The submit script on the server creates a new folder in existing svn server with the name of the submitted app. Script on dev side waits for HTTP to issue a success message and then do a svn checkout in dev local machine.

Problem:

The submit script on the market server failed to create new svn directory through code:

echo `svnadmin mkdir -m 'added new package $package' http://localhost/market/packages/$package`;

this does not echo nothing and when I go on http://localhost/market/packages, the folder has not been added and the revision number has not been incremented.

I've tried from a terminal in market server

chown root:www-data /usr/bin/svnadmin

or

chmod 777 /usr/bin/svnadmin

but still no luck. Somebody has come acrosss similar problem? Any solutions? Thanks!

Profile: Linux/Ubuntu, apache subversion

link|improve this question

50% accept rate
ok, I've made an error, it should be svn mkdirand not svnadmin mkdir. working from terminal but still not working from apache ... – fabjoa Mar 12 '11 at 16:52
feedback

1 Answer

ok, noob mistake I did not set right the permissions of the folder that contains the svn server.

chown -R www-data:subversion /var/www/market/packages
chmod -R 750 /var/www/market/packages

now it works!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.