mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-07-25 18:57:24 +00:00
make smaller styling changes
Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
parent
897faadc7d
commit
4313de2f24
@ -4,13 +4,9 @@ ADDITIONAL_KOPANO_PACKAGES=${ADDITIONAL_KOPANO_PACKAGES:-""}
|
|||||||
|
|
||||||
set -eu # unset variables are errors & non-zero return values exit the whole script
|
set -eu # unset variables are errors & non-zero return values exit the whole script
|
||||||
|
|
||||||
if [ ! -e /kopano/$SERVICE_TO_START.py ]
|
if [ ! -e /kopano/$SERVICE_TO_START.py ]; then
|
||||||
then
|
echo "Invalid service specified: $SERVICE_TO_START" | ts
|
||||||
echo "Invalid service specified: $SERVICE_TO_START" | ts
|
exit 1
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
#ensure removed pid-file on unclean shutdowns and mounted volumes
|
|
||||||
rm -f /var/run/kopano/$SERVICE_TO_START.pid
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -z "$ADDITIONAL_KOPANO_PACKAGES" ] && apt update
|
[ ! -z "$ADDITIONAL_KOPANO_PACKAGES" ] && apt update
|
||||||
@ -29,11 +25,13 @@ echo "Set ownership" | ts
|
|||||||
chown -R kopano:kopano /run /tmp
|
chown -R kopano:kopano /run /tmp
|
||||||
chown kopano:kopano /kopano/data/ /kopano/data/attachments
|
chown kopano:kopano /kopano/data/ /kopano/data/attachments
|
||||||
|
|
||||||
|
# ensure removed pid-file on unclean shutdowns and mounted volumes
|
||||||
|
rm -f /var/run/kopano/$SERVICE_TO_START.pid
|
||||||
|
|
||||||
# allow helper commands given by "docker-compose run"
|
# allow helper commands given by "docker-compose run"
|
||||||
if [ $# -gt 0 ]
|
if [ $# -gt 0 ]; then
|
||||||
then
|
exec "$@"
|
||||||
exec "$@"
|
exit
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# start regular service
|
# start regular service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user