Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th December 2010, 01:25
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 202
Thanks: 68
Thanked 14 Times in 12 Posts
Default Cronjob with svn up command doesn't work

Hi all

I created this cron command:

/usr/bin/svn --username USERNAME --password PASS up /var/www/clients/clientX/webX/web > /dev/null

Full cron is allowed for webX. In syslog is corresponding line:

Dec 9 01:00:01 SERVER CRON[3920]: (webX) CMD (/usr/bin/svn --username USERNAME --password PASS up /var/www/clients/clientX/webX/web > /dev/null)

but svn up never done. If I run this command from command line as user webX so it works as expected.

I tested to save output to file but empty file was created.

What I have to do for creating sucessfully svn cronjob command?

Thanks SupuS
Reply With Quote
Sponsored Links
  #2  
Old 9th December 2010, 09:59
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,072
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

and when you run:

Code:
sudo -u webx /usr/bin/svn --username USERNAME --password PASS up /var/www/clients/clientX/webX/web > /dev/null
on the shell, then the command works?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th December 2010, 11:56
SupuS SupuS is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 202
Thanks: 68
Thanked 14 Times in 12 Posts
 
Default

Quote:
Originally Posted by till View Post
and when you run:

Code:
sudo -u webx /usr/bin/svn --username USERNAME --password PASS up /var/www/clients/clientX/webX/web > /dev/null
on the shell, then the command works?
Hi till,

thanks for replay. Yes it works. It complains about permissions only:

Code:
svn: warning: Can't open file '/root/.subversion/servers': Permission denied
I don't know if this information helps but .subversion directory also was created for user webX and for SHELLUSER of this web:

/var/www/clients/clientX/webX/home/webX/.subversion
/var/www/clients/clientX/webX/home/SHELLUSER/.subversion

SupuS
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailuser interface Horfic Plugins/Modules/Addons 497 28th November 2013 10:01
How to config Proftpd to work with passive mode in ISPConfig 2.2.35 X-admin Installation/Configuration 0 6th June 2010 18:52
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
Remoting frame work work with version 2.32 ??? afandino Developers' Forum 7 8th June 2009 16:23
install ispconfig2 ok site dos not work ferasfm Installation/Configuration 5 7th May 2009 20:16


All times are GMT +2. The time now is 10:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.