File tree Expand file tree Collapse file tree 9 files changed +19
-26
lines changed
Expand file tree Collapse file tree 9 files changed +19
-26
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33set -e
44set -x
55export DEBIAN_FRONTEND=noninteractive
66
77apt-get update
8- apt-get install -y \
8+ apt-get install -y --no-install-recommends \
99 vsftpd \
10- supervisor \
10+ s6 \
1111 nginx \
1212 php-fpm \
1313 php-gd \
@@ -16,12 +16,11 @@ apt-get install -y \
1616 graphicsmagick \
1717 ffmpeg
1818apt-get clean
19+ rm -rf /var/lib/apt/lists/*
20+
1921cp -L /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2022mkdir -p /var/run/sshd \
2123 /var/run/vsftpd/empty \
2224 /run/php
2325
24- apt-get clean
25- rm -rf /var/lib/apt/lists/*
26-
2726echo " session required pam_exec.so /opt/init_home.sh" >> /etc/pam.d/common-session
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
13if [[ $HAVE_INITIALIZED == false ]]; then
24 useradd -m $PRIVATE_USERNAME -d /srv/ftp
35 gpasswd -a $PRIVATE_USERNAME ftp
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ exec nginx -g ' daemon off;'
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ exec /usr/sbin/nslcd -n
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ exec /usr/sbin/php-fpm8.2 --nodaemonize --fpm-config /etc/php/8.2/fpm/php-fpm.conf
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ exec /usr/sbin/sshd -D -e
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ exec /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- #! /bin/bash
2-
3- exec /usr/bin/supervisord
1+ #! /bin/sh
2+ exec /usr/bin/s6-svscan /etc/s6
You can’t perform that action at this time.
0 commit comments