1

As the title says, I'm trying to ftpsync changed tree to our dev web server. On committing I get this error:

post-commit hook failed (exit code 13) with output: Cannot create syncfile for time sync option at /data/ftpsync/ftpsync.pl line 484.

I've tried looking at line 484 but Perl looks like a foreign language to me :)

What permissions do I need to set and where so that syncfile can be created?

Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339
Vnuk
  • 2,673
  • 1
  • 32
  • 49
  • 2
    Perl may look like Chinese to you, but presumably not to the people here you are asking; how about you show line 484? – ysth Oct 16 '09 at 05:59
  • 2
    Never mind, the curious can find it here: https://ftpsync.svn.sourceforge.net/svnroot/ftpsync/trunk/ftpsync/src/ftpsync.pl – ysth Oct 16 '09 at 06:00

1 Answers1

2

It creates the file in the current directory, and as far as I can tell doesn't change directories before that point. The easiest thing to do would be to change directories to /tmp before starting the script (and specify a local directory in its args instead of using the default .).

ysth
  • 96,171
  • 6
  • 121
  • 214
  • You're right. Added o+w to directory specified in args and it works – Vnuk Oct 16 '09 at 06:11
  • 1
    another (potentially unwise) solution (don't do it!) would be changing the permissions on the current directory. *cd /tmp* first, as ysth suggests! – lexu Oct 16 '09 at 06:14