Skip to content
Snippets Groups Projects
Commit cc14ad95 authored by Bob Mottram's avatar Bob Mottram
Browse files

Avoid double checkout

parent 135dfdd2
No related branches found
No related tags found
No related merge requests found
......@@ -786,9 +786,11 @@ function image_install_web_server {
mkdir "$rootdir$INSTALL_DIR"
fi
git clone "$NGINX_ENSITE_REPO" "$rootdir$INSTALL_DIR/nginx_ensite"
cd "$rootdir$INSTALL_DIR/nginx_ensite" || exit 2468748223
git checkout "$NGINX_ENSITE_COMMIT" -b "$NGINX_ENSITE_COMMIT"
else
cd "$rootdir$INSTALL_DIR/nginx_ensite" || exit 2468748223
fi
cd "$rootdir$INSTALL_DIR/nginx_ensite" || exit 2468748223
git checkout "$NGINX_ENSITE_COMMIT" -b "$NGINX_ENSITE_COMMIT"
chroot "$rootdir" make install
chroot "$rootdir" nginx_dissite default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment