Execute scripts from docker container

未关闭
#417 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
50/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
docker, php
领域
backend, devops

调研方向

首先,按照描述使用 docker exec,通过 /var/www/html/config/test.sh 中的外部脚本复现已配置的“File accessed”Flow。检查 workflow_script 应用和容器执行上下文,以确定为什么手动执行有效而 Flow 无效;当打开 nextCloud_flow_test.txt 时脚本能够运行并将日期追加到 test.txt,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Hi everyone,
I am running NextCloud within docker (based on “with-nginx-proxy/mariadb/fpm”) which works very well. But I can not get Flow working with external scripts.

I want to run a script when a defined file is opened. I have installed the “external script” app and configured a flow with:
“File accessed” and file name is “nextcloud_flow_test.txt” run script at “/var/www/html/config/test.sh”.

But the script is not executed when accessing the file from my NextCloud Webinterface.

The script itself is accessable from the docker container. I started it via an interactive shell from the container (docker exec -it nextcloud bash). Currently the script just inserts the current date to a text file (date >> test.txt) which works fine when executed manually.

Is there anything I am missing?

主要语言
PHP
星标
89
派生
19
平均合并
6 小时 38 分钟
30 天内合并 PR
3

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/workflow_script 的其他 Issue

查看 nextcloud/workflow_script 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。