mirror of
https://github.com/casjaysdevdocker/nextcloud
synced 2025-01-30 18:34:28 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
d1f5e78d17
commit
0ffc23312a
@ -23,6 +23,7 @@ RUN mkdir -p /bin/ /config/ /data/ /dist/nextcloud/ && \
|
|||||||
echo "http://dl-cdn.alpinelinux.org/alpine/$ALPINE_VERSION/testing" >> /etc/apk/repositories && \
|
echo "http://dl-cdn.alpinelinux.org/alpine/$ALPINE_VERSION/testing" >> /etc/apk/repositories && \
|
||||||
apk update -U --no-cache \
|
apk update -U --no-cache \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
|
openrc \
|
||||||
icu-data-full \
|
icu-data-full \
|
||||||
curl \
|
curl \
|
||||||
gnupg \
|
gnupg \
|
||||||
|
@ -94,7 +94,7 @@ fi
|
|||||||
[ -f "/etc/.env.sh" ] && rm -Rf "/etc/.env.sh"
|
[ -f "/etc/.env.sh" ] && rm -Rf "/etc/.env.sh"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Additional commands
|
# Additional commands
|
||||||
|
[ -f "/run/openrc/softlevel" ] || openrc -n sysinit
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--help) # Help message
|
--help) # Help message
|
||||||
@ -102,12 +102,13 @@ case "$1" in
|
|||||||
echo "Usage: $APPNAME [healthcheck, bash, command]"
|
echo "Usage: $APPNAME [healthcheck, bash, command]"
|
||||||
echo "Failed command will have exit code 10"
|
echo "Failed command will have exit code 10"
|
||||||
echo
|
echo
|
||||||
exitCode=$?
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
healthcheck) # Docker healthcheck
|
healthcheck) # Docker healthcheck
|
||||||
/usr/local/bin/healthcheck
|
netstat -taupln | grep -q "php-fpm" &&
|
||||||
exitCode=$?
|
netstat -taupln | grep -q "nginx"
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*/bin/sh | */bin/bash | bash | shell | sh) # Launch shell
|
*/bin/sh | */bin/bash | bash | shell | sh) # Launch shell
|
||||||
@ -118,7 +119,8 @@ healthcheck) # Docker healthcheck
|
|||||||
|
|
||||||
*) # Execute primary command
|
*) # Execute primary command
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
__exec_bash "/bin/bash"
|
/etc/init.d/php-fpm8 status | grep 'status: started' || /etc/init.d/php8-fpm start
|
||||||
|
/etc/init.d/nginx status | grep 'status: started' || /etc/init.d/nginx start
|
||||||
else
|
else
|
||||||
__exec_bash "/bin/bash"
|
__exec_bash "/bin/bash"
|
||||||
fi
|
fi
|
||||||
|
@ -6,5 +6,5 @@ if [ "$SIDECAR_NEWSUPDATER" = "1" ]; then
|
|||||||
elif [ "$SIDECAR_CRON" = "1" ] || [ "$SIDECAR_PREVIEWGEN" = "1" ]; then
|
elif [ "$SIDECAR_CRON" = "1" ] || [ "$SIDECAR_PREVIEWGEN" = "1" ]; then
|
||||||
pgrep -f "busybox crond -f -L /dev/stdout"
|
pgrep -f "busybox crond -f -L /dev/stdout"
|
||||||
else
|
else
|
||||||
curl --fail http://127.0.0.1:12345/ping || exit 1
|
curl --fail http://127.0.0.1:80/ping || exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user