Commit b26c485f authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil Team

server/web2py/applications/vidjil/scripts/*.sh: No more need to launch scripts...

server/web2py/applications/vidjil/scripts/*.sh: No more need to launch scripts from the scripts/ directory

Now we can launch the script from anywhere. With Docker we can even launch a script from the host using docker exec.
parent 5f355606
Pipeline #139557 passed with stages
in 9 minutes and 39 seconds
......@@ -8,6 +8,7 @@ if [ $# -eq 0 -o "$1" == "-h" -o "$1" == "--help" ]; then
exit 1
fi
SCRIPT_DIR=$(dirname $0)
script_name=$1
shift
python ../../../web2py.py -S vidjil -M -R "applications/vidjil/scripts/$script_name" -A $*
python $SCRIPT_DIR/../../../web2py.py -S vidjil -M -R "applications/vidjil/scripts/$script_name" -A $*
#!/bin/sh
python ../../../web2py.py -S vidjil -M
SCRIPT_DIR=$(dirname $0)
python $SCRIPT_DIR/../../../web2py.py -S vidjil -M
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment