Skip to content

Commit

Permalink
fix "/etc/apt/sources.list: No such file or directory" error
Browse files Browse the repository at this point in the history
correct sed params
  • Loading branch information
star8ks committed Apr 12, 2024
1 parent 380ce3f commit 65cb1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php-fpm/Dockerfile
Expand Up @@ -28,7 +28,7 @@ ENV DEBIAN_FRONTEND noninteractive
ARG CHANGE_SOURCE=false
RUN if [ ${CHANGE_SOURCE} = true ]; then \
# Change application source from deb.debian.org to tsinghua source
sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources \
sed -i 's#deb.debian.org/debian$#mirrors.tuna.tsinghua.edu.cn/debian#' /etc/apt/sources.list.d/debian.sources \
;fi

# always run apt update when start and after add new source list, then clean up at end.
Expand Down

0 comments on commit 65cb1b3

Please sign in to comment.