attachment-server/docker_container/inside-container_start.sh

26 lines
864 B
Bash

#!/bin/sh
cd /root/
apt update
apt install -y --no-install-recommends util-linux psmisc nginx-light php7.4-fpm php7.4-curl php7.4-mbstring php7.4-gd
killall -9 php-fpm7.4
killall -9 nginx
killall -9 gor_linux_x64.upx.elf
cp --force /root/www/docker_container/nginx.conf /etc/nginx/nginx.conf
cp --force /root/www/docker_container/nginx-0.conf /root/nginx-0.conf
cp --force /root/www/docker_container/php-fpm.conf /etc/php/7.4/fpm/php-fpm.conf
cp --force /root/www/docker_container/php-fpm.www.conf /root/php-fpm.www.conf
php-fpm7.4 --allow-to-run-as-root
nginx
#setsid --fork /root/www/docker_container/gor_linux_x64.upx.elf --copy-buffer-size 1048576 --input-tcp :12345 --input-raw-realip-header "X-GOR-Real-IP" --output-http "http://127.0.0.1:25000" --output-file /root/log/gor_traffic.log --output-file-append
#tail -f /dev/null
#sleep infinity
bash -i