Compare commits

...

3 Commits
0.99 ... 0.100

Author SHA1 Message Date
cytopia
649f667f45 Merge pull request #146 from devilbox/release-0.100
Release v0.100
2020-01-04 22:30:02 +01:00
cytopia
0cbd58141d Fix wget download 2020-01-04 21:22:39 +01:00
cytopia
965db7f0d5 Allow chown homedir to fail (e.g.: for read-only sub-mount) 2020-01-04 21:03:29 +01:00
13 changed files with 25 additions and 25 deletions

View File

@@ -61,7 +61,7 @@ set_uid() {
# Change uid and fix homedir permissions
log "info" "Changing user '${username}' uid to: ${uid}" "${debug}"
run "usermod -u ${uid} ${username}" "${debug}"
run "chown -R ${username} ${homedir}" "${debug}"
run "chown -R ${username} ${homedir} || true" "${debug}"
run "chown -R ${username} /var/lib/php/session" "${debug}"
run "chown -R ${username} /var/lib/php/wsdlcache" "${debug}"
fi
@@ -103,7 +103,7 @@ set_gid() {
# Change ugd and fix homedir permissions
log "info" "Changing group '${groupname}' gid to: ${gid}" "${debug}"
run "groupmod -g ${gid} ${groupname}" "${debug}"
run "chown -R :${groupname} ${homedir}" "${debug}"
run "chown -R :${groupname} ${homedir} || true" "${debug}"
run "chown -R :${groupname} /var/lib/php/session" "${debug}"
run "chown -R :${groupname} /var/lib/php/wsdlcache" "${debug}"
fi

View File

@@ -191,7 +191,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\

View File

@@ -208,7 +208,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -264,7 +264,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -237,7 +237,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -293,7 +293,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -241,7 +241,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -298,7 +298,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -254,7 +254,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -311,7 +311,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -254,7 +254,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -311,7 +311,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -254,7 +254,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -311,7 +311,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -254,7 +254,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -312,7 +312,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -254,7 +254,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -298,7 +298,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -254,7 +254,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -293,7 +293,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -197,7 +197,7 @@ RUN set -eux \
\
\
# -------------------- mhsendmail --------------------
&& wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
&& curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
\
@@ -236,7 +236,7 @@ RUN set -eux \
\
\
# -------------------- phpmd --------------------
&& wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
&& curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
\

View File

@@ -572,7 +572,7 @@ software_available:
mhsendmail:
all:
command: |
wget --no-hsts https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 \
curl -sS -L https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail \
mysqldumpsecure:
@@ -737,7 +737,7 @@ software_available:
check: phpmd --version | grep -E '^PHPMD [.0-9]+'
all:
command: |
wget --no-hsts https://phpmd.org/static/latest/phpmd.phar \
curl -sS -L https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
&& mv phpmd.phar /usr/local/bin/phpmd \
&& chmod +x /usr/local/bin/phpmd \
phpunit: