Skip to content

only syncing to sync-cache - * sh: ncftpput: not found #1

@gosuto-inzasheru

Description

@gosuto-inzasheru

I was able to install this project on a remote server and set up my repo with a WebHook URL to my post-commit.php file. Configuring the config file is, as far as I can tell, successful as well.

But when using the test hook function on my repo admin panel I can only see a successful sync to /sync-cache/. When checking the log I come across two problems:

SYNC CONFIG FOUND

------------------------------ Config check
Cache dir: [...]/github-webhook/sync-cache/[my-repo]
Hosts to sync:
==========
----- prod
Task:
ncftpput -F -D -R -u [user] -p [password] 127.0.0.1 $srv_path/ [...]/htdocs/www/github-webhook/sync-cache/[my-repo]//* 2>&1

First problem I see here is that $srv_path is parsed as a string not a variable. I can't find where it is supposed to be defined either. Isn't this suppose to be $path (or $path$repo_path)? What about the trailing //* in the $from directory?

CLONE and UPLOAD then go well except for the last line before the end:

* sh: ncftpput: not found

** SYNC FINISHED **

Is this a problem with my hosting (missing module/no shell access) or related to the first problem? And if it is indeed a problem with my hosting, what are the alternatives for this line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions