Cronjob with svn up command doesn't work

Discussion in 'General' started by SupuS, Dec 9, 2010.

  1. SupuS

    SupuS Member HowtoForge Supporter

    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
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    and when you run:

    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?
  3. SupuS

    SupuS Member HowtoForge Supporter

    Hi till,

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

    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:



Share This Page