From ae2cfe0ec442481bb043265e8fcf9c78ca371a34 Mon Sep 17 00:00:00 2001 From: Bertrand Gouny Date: Tue, 15 Aug 2017 17:14:39 +0200 Subject: [PATCH] Remove keepalived_script script user, to run scripts with root user --- CHANGELOG.md | 1 + image/Dockerfile | 2 -- image/service/keepalived/startup.sh | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2ab807..7c5687f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.3.6 - Keepalived version 1.3.6 + - Remove keepalived_script script user, to run scripts with root user ## 1.3.5-1 - Fix startup.sh and finish.sh ip address removal diff --git a/image/Dockerfile b/image/Dockerfile index 5e093ee..9a7a77d 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -6,8 +6,6 @@ MAINTAINER Bertrand Gouny # Keepalived version ARG KEEPALIVED_VERSION=1.3.6 -RUN addgroup -S keepalived_script && adduser -D -S -G keepalived_script keepalived_script - # Download, build and install Keepalived RUN apk --no-cache add \ curl \ diff --git a/image/service/keepalived/startup.sh b/image/service/keepalived/startup.sh index 4fae6e3..5845974 100755 --- a/image/service/keepalived/startup.sh +++ b/image/service/keepalived/startup.sh @@ -17,7 +17,6 @@ if [ ! -e "$FIRST_START_DONE" ]; then if [ -n "$KEEPALIVED_NOTIFY" ]; then sed -i "s|{{ KEEPALIVED_NOTIFY }}|notify \"$KEEPALIVED_NOTIFY\"|g" ${CONTAINER_SERVICE_DIR}/keepalived/assets/keepalived.conf - chown keepalived_script:keepalived_script $KEEPALIVED_NOTIFY chmod +x $KEEPALIVED_NOTIFY else sed -i "/{{ KEEPALIVED_NOTIFY }}/d" ${CONTAINER_SERVICE_DIR}/keepalived/assets/keepalived.conf