Skip to content

Commit

Permalink
F #4952: Create /sbin/init if not exists (#55)
Browse files Browse the repository at this point in the history
(cherry picked from commit a1e8cc6)
  • Loading branch information
Christian González authored and rsmontero committed Apr 13, 2021
1 parent dbff3b7 commit 7e7d6e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/datastore_mad/remotes/docker_downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ fi
case "$distro" in
debian|ubuntu)
commands=$(cat <<EOC
RUN [ ! -e /sbin/init ] && ln -s /lib/systemd/systemd /sbin/init
RUN apt-get update
RUN apt-get update && apt-get install -y \
curl \
Expand All @@ -147,6 +148,7 @@ EOC
;;
centos)
commands=$(cat <<EOC
RUN [ ! -e /sbin/init ] && ln -s /lib/systemd/systemd /sbin/init
RUN yum update -y
RUN yum install -y epel-release
RUN yum install -y initscripts \
Expand Down

0 comments on commit 7e7d6e4

Please sign in to comment.