Execute scripts from docker container
还没有人认领这个 Issue。
评估
调研方向
首先,按照描述使用 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/workflow_script 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
nextcloud/workflow_script#486 ·
-
0. Needs triage bug needs info
难度 3/5 1-2 天 新手友好度 35/100
nextcloud/workflow_script#482 · 3 条评论 ·
-
needs info
难度 3/5 1-2 天 新手友好度 48/100
nextcloud/workflow_script#386 · 2 条评论 ·
-
1. to develop bug needs info
难度 4/5 3-5 天 新手友好度 35/100
nextcloud/workflow_script#385 · 21 条评论 ·
-
0. Needs triage enhancement
难度 4/5 3-5 天 新手友好度 35/100
nextcloud/workflow_script#380 ·
查看 nextcloud/workflow_script 的全部 Issue
相似的 Issue
-
sync-en
难度 1/5 1-3 小时 新手友好度 85/100
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 68/100
getgrav/grav-plugin-api#45 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
RSS-Bridge/rss-bridge#5098 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
phingofficial/phing#2025 ·