minio/mint/postinstall.sh

16 lines
303 B
Bash
Raw Normal View History

2019-07-09 21:32:39 -04:00
#!/bin/bash -e
#
#
2019-07-11 14:45:57 -04:00
export APT="apt --quiet --yes"
2019-07-09 21:32:39 -04:00
# remove all packages listed in remove-packages.list
2019-07-11 14:45:57 -04:00
xargs --arg-file="${MINT_ROOT_DIR}/remove-packages.list" apt --quiet --yes purge
${APT} autoremove
2019-07-09 21:32:39 -04:00
# remove unwanted files
rm -fr "$GOROOT" "$GOPATH/src" /var/lib/apt/lists/*
# flush to disk
sync