diff --git a/docker/memcached/config-external.sh b/docker/memcached/config-external.sh index 0f3fa83361..d373ddc226 100644 --- a/docker/memcached/config-external.sh +++ b/docker/memcached/config-external.sh @@ -3,6 +3,13 @@ SOURCE="/opt/kolla/memcached/memcached.conf" TARGET="/etc/memcached.conf" OWNER="memcached" +if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \ + "${KOLLA_BASE_DISTRO}" == "debian" ]]; then + OWNER="memcache" +else + OWNER="memcached" +fi + if [[ -f "$SOURCE" ]]; then cp $SOURCE $TARGET chown ${OWNER}: $TARGET diff --git a/docker/memcached/start.sh b/docker/memcached/start.sh index 531dd38726..b8628b9148 100755 --- a/docker/memcached/start.sh +++ b/docker/memcached/start.sh @@ -2,8 +2,14 @@ set -o errexit -CMD="/usr/bin/memcached" -ARGS="-u memcached -vv" +if [[ "${KOLLA_BASE_DISTRO}" == "ubuntu" || \ + "${KOLLA_BASE_DISTRO}" == "debian" ]]; then + CMD="/usr/bin/memcached" + ARGS="-u memcache -vv" +else + CMD="/usr/bin/memcached" + ARGS="-u memcached -vv" +fi # Loading common functions. source /opt/kolla/kolla-common.sh