diff --git a/README.md b/README.md index 1b51d9c..57adbf5 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ docker run -d \ ## Changelog +* 2017-04-28: version 0.1.1 + * Fix http server doesn't start after the container restarted + * 2017-04-27: version 0.1 * Update base image to Ubuntu 16.04 * remove option `MIRROR_URL` diff --git a/setup.sh b/setup.sh index 3b7b07c..425ebcf 100755 --- a/setup.sh +++ b/setup.sh @@ -27,7 +27,6 @@ function create_link { if [ ! -d /var/www/package ]; then mkdir -p /var/www/package sed -i '12s|DocumentRoot /var/www/html|DocumentRoot /var/www/package|' /etc/apache2/sites-enabled/000-default.conf - service apache2 restart >/dev/null # If user doesn't provide mirror.list, using default setting if [ ! -e /etc/apt/mirror.list ]; then @@ -37,6 +36,9 @@ if [ ! -d /var/www/package ]; then create_link fi +echo "[$(date)] Starting apache server" +service apache2 start + while true; do echo "[$(date)] Starting apt-mirror" apt-mirror