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

Remove packages to free up space during image creation

parent e3240ea9
No related branches found
No related tags found
No related merge requests found
......@@ -679,6 +679,12 @@ function webadmin_install_search {
fi
if [ "$rootdir" ]; then
# remove downloaded packages
# shellcheck disable=SC2086
chroot "$rootdir" $REMOVE_UNUSED_PACKAGES
# shellcheck disable=SC2086
chroot "$rootdir" $CLEAN_PACKAGES
# shellcheck disable=SC2086
chroot "$rootdir" $INSTALL_PACKAGES python-pip libyaml-dev python-werkzeug python-babel python-lxml
# shellcheck disable=SC2086
......@@ -689,11 +695,23 @@ function webadmin_install_search {
chroot "$rootdir" $INSTALL_PACKAGES python-service-identity python-ndg-httpsclient
# shellcheck disable=SC2086
chroot "$rootdir" $REMOVE_PACKAGES_PURGE apache2-bin*
# remove downloaded packages
# shellcheck disable=SC2086
chroot "$rootdir" $REMOVE_UNUSED_PACKAGES
# shellcheck disable=SC2086
chroot "$rootdir" $CLEAN_PACKAGES
else
$INSTALL_PACKAGES python-pip libyaml-dev python-werkzeug python-babel python-lxml
$INSTALL_PACKAGES git build-essential libxslt-dev python-dev python-virtualenv zlib1g-dev uwsgi uwsgi-plugin-python imagemagick
$INSTALL_PACKAGES apache2-utils python-setuptools
$INSTALL_PACKAGES python-service-identity python-ndg-httpsclient
# remove downloaded packages
# shellcheck disable=SC2086
$REMOVE_UNUSED_PACKAGES
# shellcheck disable=SC2086
$CLEAN_PACKAGES
fi
cat >> "$rootdir/usr/bin/install_searx" <<EOF
......
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