nextcloud / nextcloud/workflow_script
Execute scripts from docker container
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- PHP
- Sterne
- 89
- Forks
- 19
- Ø Merge
- 6 Std. 38 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den konfigurierten „File accessed“-Flow mit dem externen Skript unter /var/www/html/config/test.sh unter Verwendung von docker exec wie beschrieben zu reproduzieren. Überprüfe die workflow_script-App und den Ausführungskontext des Containers, um festzustellen, warum die manuelle Ausführung funktioniert, der Flow jedoch nicht; als erledigt gilt, wenn das Skript ausgeführt wird, sobald nextCloud_flow_test.txt geöffnet wird, und das Datum an test.txt anhängt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, php
- Bereich
- backend, devops
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 50/100