[BUGFIX] Fix styling of RTE wizard
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Build / Configuration / TravisNginxFpm / ConfigureStartNginxFpm.sh
1 #!/bin/bash
2 set -e
3
4 DIR=$(realpath $(dirname "$0"))
5 PHP_VERSION=$(phpenv version-name)
6 ROOT=$(realpath "$DIR/../../../../../..")
7 PHP_FPM_BIN="$HOME/.phpenv/versions/$PHP_VERSION/sbin/php-fpm"
8 PHP_FPM_CONF="$DIR/php-fpm.conf"
9
10 # Start php-fpm
11 "$PHP_FPM_BIN" --fpm-config "$PHP_FPM_CONF"
12
13 # Build nginx config file and start nginx
14 sed -e "s|{ROOT}|$ROOT|g" < "$DIR/nginx.tpl.conf" > "$ROOT/nginx.conf"
15 nginx -c "$ROOT/nginx.conf"