Skip to content

Commit 4437f6f

Browse files
authored
Merge pull request #521 from linuxserver/tidy-init
2 parents ca3830d + ed7c58a commit 4437f6f

File tree

34 files changed

+21
-28
lines changed

34 files changed

+21
-28
lines changed

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
1010
LABEL maintainer="nemchik"
1111

1212
# environment settings
13-
ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.ini
14-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
13+
ENV DHLEVEL=2048 \
14+
ONLY_SUBDOMAINS=false \
15+
AWS_CONFIG_FILE=/config/dns-conf/route53.ini \
16+
S6_BEHAVIOUR_IF_STAGE2_FAILS=2
1517

1618
RUN \
1719
echo "**** install build packages ****" && \

Dockerfile.aarch64

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
1010
LABEL maintainer="nemchik"
1111

1212
# environment settings
13-
ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.ini
14-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
13+
ENV DHLEVEL=2048 \
14+
ONLY_SUBDOMAINS=false \
15+
AWS_CONFIG_FILE=/config/dns-conf/route53.ini \
16+
S6_BEHAVIOUR_IF_STAGE2_FAILS=2
1517

1618
RUN \
1719
echo "**** install build packages ****" && \

Jenkinsfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ pipeline {
2929
PR_DOCKERHUB_IMAGE = 'lspipepr/swag'
3030
DIST_IMAGE = 'alpine'
3131
MULTIARCH='true'
32-
CI='true'
32+
CI='false'
3333
CI_WEB='false'
3434
CI_PORT='80'
3535
CI_SSL='false'
3636
CI_DELAY='30'
37-
CI_DOCKERENV='TEST_RUN=1'
37+
CI_DOCKERENV=''
3838
CI_AUTH=''
3939
CI_WEBPATH=''
4040
}

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Find us at:
3737
[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/swag.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/swag)
3838
[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/swag.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/swag)
3939
[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-swag%2Fjob%2Fmaster%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-swag/job/master/)
40-
[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Fci-tests.linuxserver.io%2Flinuxserver%2Fswag%2Flatest%2Fci-status.yml)](https://ci-tests.linuxserver.io/linuxserver/swag/latest/index.html)
4140

4241
SWAG - Secure Web Application Gateway (formerly known as letsencrypt, no relation to Let's Encrypt™) sets up an Nginx webserver and reverse proxy with php support and a built-in certbot client that automates free SSL server certificate generation and renewal processes (Let's Encrypt and ZeroSSL). It also contains fail2ban for intrusion prevention.
4342

jenkins-vars.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ repo_vars:
1717
- PR_DOCKERHUB_IMAGE = 'lspipepr/swag'
1818
- DIST_IMAGE = 'alpine'
1919
- MULTIARCH='true'
20-
- CI='true'
20+
- CI='false'
2121
- CI_WEB='false'
2222
- CI_PORT='80'
2323
- CI_SSL='false'
2424
- CI_DELAY='30'
25-
- CI_DOCKERENV='TEST_RUN=1'
25+
- CI_DOCKERENV=''
2626
- CI_AUTH=''
2727
- CI_WEBPATH=''
2828
sponsor_links:

root/app/le-renew.sh

100644100755
File mode changed.

root/etc/s6-overlay/s6-rc.d/init-fail2ban-config/run

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# shellcheck shell=bash
33

44
if ! iptables -L &> /dev/null; then
5-
ln -sf /sbin/xtables-legacy-multi /sbin/iptables
6-
ln -sf /sbin/xtables-legacy-multi /sbin/iptables-save
7-
ln -sf /sbin/xtables-legacy-multi /sbin/iptables-restore
8-
ln -sf /sbin/xtables-legacy-multi /sbin/ip6tables
9-
ln -sf /sbin/xtables-legacy-multi /sbin/ip6tables-save
10-
ln -sf /sbin/xtables-legacy-multi /sbin/ip6tables-restore
5+
ln -sf /sbin/xtables-legacy-multi /sbin/iptables
6+
ln -sf /sbin/xtables-legacy-multi /sbin/iptables-save
7+
ln -sf /sbin/xtables-legacy-multi /sbin/iptables-restore
8+
ln -sf /sbin/xtables-legacy-multi /sbin/ip6tables
9+
ln -sf /sbin/xtables-legacy-multi /sbin/ip6tables-save
10+
ln -sf /sbin/xtables-legacy-multi /sbin/ip6tables-restore
1111
fi
1212

1313
# copy/update the fail2ban config defaults to/in /config

root/etc/s6-overlay/s6-rc.d/init-folders-config/up

-1
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-nginx-config/up

-1
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-permissions-config/run

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ lsiown -R abc:abc \
66
/config
77
chmod -R 0644 /etc/logrotate.d
88
chmod -R +r /config/log
9-
chmod +x /app/le-renew.sh

root/etc/s6-overlay/s6-rc.d/init-samples-config/up

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-swag-config/run
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-swag-folders/run
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-swag-samples/run

root/etc/s6-overlay/s6-rc.d/init-test-run/run

-7
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-test-run/type

-1
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-test-run/up

-1
This file was deleted.

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-samples-config

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-test-run

Whitespace-only changes.

0 commit comments

Comments
 (0)