docker – Blame information for rev 62

Subversion Repositories:
Rev:
Rev Author Line No. Line
62 office 1 #!/usr/bin/with-contenv sh
2 # shellcheck shell=sh
3  
4 mkdir -p /etc/services.d/nginx
5 cat > /etc/services.d/nginx/run <<EOL
6 #!/usr/bin/execlineb -P
7 with-contenv
8 s6-setuidgid ${PUID}:${PGID}
9 nginx -g "daemon off;"
10 EOL
11 chmod +x /etc/services.d/nginx/run
12  
13 mkdir -p /etc/services.d/php-fpm
14 cat > /etc/services.d/php-fpm/run <<EOL
15 #!/usr/bin/execlineb -P
16 with-contenv
17 s6-setuidgid ${PUID}:${PGID}
18 php-fpm83 -F
19 EOL
20 chmod +x /etc/services.d/php-fpm/run
21  
22 mkdir -p /etc/services.d/rtorrent
23 cat > /etc/services.d/rtorrent/run <<EOL
24 #!/usr/bin/execlineb -P
25 with-contenv
26 /bin/export HOME /data/rtorrent
27 /bin/export PWD /data/rtorrent
28 s6-setuidgid ${PUID}:${PGID}
29 EOL
30 if [ -z "${WAN_IP}" ]; then
31 echo "rtorrent -D -o import=/etc/rtorrent/.rtlocal.rc" >> /etc/services.d/rtorrent/run
32 else
33 echo "rtorrent -D -o import=/etc/rtorrent/.rtlocal.rc -i ${WAN_IP}" >> /etc/services.d/rtorrent/run
34 fi
35  
36 chmod +x /etc/services.d/rtorrent/run