15 lines
165 B
Bash
15 lines
165 B
Bash
|
#!/bin/sh
|
||
|
nginx
|
||
|
|
||
|
|
||
|
# if argument(s) given - execute argument(s) in container. Otherwise loop.
|
||
|
if [ "$#" -gt 0 ]; then
|
||
|
exec $@
|
||
|
else
|
||
|
while :;
|
||
|
do
|
||
|
sleep 1
|
||
|
done
|
||
|
fi
|
||
|
|