Skip to content
Snippets Groups Projects
Commit 08fb44b6 authored by Robert Szulist's avatar Robert Szulist
Browse files

Use python instead of python2

On used docker baseimage python is already linked to python2 or python3,
depending on image version
parent d0e80bf7
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
''''which python2 >/dev/null && exec python2 "$0" "$@" # '''
''''which python >/dev/null && exec python "$0" "$@" # ''' ''''which python >/dev/null && exec python "$0" "$@" # '''
# Copyright (C) 2014-2015 Nginx, Inc. # Copyright (C) 2014-2015 Nginx, Inc.
......
#!/bin/sh #!/bin/sh
''''[ -z $LOG ] && export LOG=/dev/stdout # ''' ''''[ -z $LOG ] && export LOG=/dev/stdout # '''
''''which python2 >/dev/null && exec python2 -u "$0" "$@" >> $LOG 2>&1 # '''
''''which python >/dev/null && exec python -u "$0" "$@" >> $LOG 2>&1 # ''' ''''which python >/dev/null && exec python -u "$0" "$@" >> $LOG 2>&1 # '''
# Copyright (C) 2014-2015 Nginx, Inc. # Copyright (C) 2014-2015 Nginx, Inc.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment