Nick Slowinski
c32d3c61fb
Alle Prüfungen waren erfolgreich
continuous-integration/drone/push Build is passing
31 Zeilen
Kein EOL
1,1 KiB
Bash
31 Zeilen
Kein EOL
1,1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# php-docker - A way to run PHP-FPM with additional modules inside docker.
|
|
# Copyright (C) 2021 php-docker contributers (please see "CONTRIBUTERS"
|
|
# file in the root directory of this repository)
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
#
|
|
# modified - delete old pid before startup
|
|
if [ -f "/web_data/robotter112.de/rank/logs/pid" ]; then rm -f /web_data/robotter112.de/rank/logs/pid; fi
|
|
|
|
# original base image
|
|
set -e
|
|
|
|
# first arg is `-f` or `--some-option`
|
|
if [ "${1#-}" != "$1" ]; then
|
|
set -- php-fpm "$@"
|
|
fi
|
|
|
|
exec "$@" |