Skip to content

Commit

Permalink
直接删除/www而不是删除子目录
Browse files Browse the repository at this point in the history
  • Loading branch information
eyunzhu committed Nov 8, 2024
1 parent 6a4a49f commit e9c866b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/dockerfile.baota
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debia
# 压缩删除/www 解决挂载目录时被宿主机覆盖的问题
&& rm /www/reserve_space.pl \
&& tar czf /www_backup.tar.gz -C / www \
&& rm -rf /www/* \
&& rm -rf /www \
# 清理
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
Expand Down
7 changes: 1 addition & 6 deletions dockerfiles/dockerfile.baota-lnmp
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,10 @@ RUN tar xzf /www_backup.tar.gz -C / \
&& bash install_soft.sh 4 install mysql 5.7 \
&& bash install_soft.sh 4 install phpmyadmin 5.1 \
# 压缩删除/www 解决挂载目录时被宿主机覆盖的问题
&& /etc/init.d/php-fpm-74 stop \
&& /etc/init.d/php-fpm-82 stop \
&& /etc/init.d/redis stop \
&& /etc/init.d/nginx stop \
&& /etc/init.d/mysqld stop \
&& rm /www/reserve_space.pl \
&& rm /www/server/data/ib_logfile* \
&& tar czf /www_backup.tar.gz -C / www \
&& rm -rf /www/* \
&& rm -rf /www \
# 清理
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
Expand Down

0 comments on commit e9c866b

Please sign in to comment.