This website requires JavaScript.
Explore
Help
Register
Sign In
sig_cloud
/
diskimage-builder
Watch
11
Star
0
Fork
0
You've already forked diskimage-builder
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
ebd54b1010
diskimage-builder
/
elements
/
dpkg
/
post-install.d
/
99-clean-up-cache
8 lines
102 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Adds support for post-install scripts. Post install scripts are useful because they can perform tasks you want to handle after the OS/application install but before the first boot of the image. e.g: Clean the cache left by the package manager reducing the size of the image. Change-Id: I03e77f602192bbdce29c02999d1b57fac8051ddc Fixes: Bug #1145786
2013-04-15 10:31:04 +00:00
#!/bin/bash
# Do an apt-get clean. This will free some space.
set -u and -o pipefail everywhere As with the previous similar changes, this is intended to catch problems as they happen instead of ignoring them and continuing on to potentially fail later. Setting this on all existing scripts will allow us to enforce use via Jenkins. Change-Id: Iad2d490c86dceab148ea9ab08f457c49a5d5352e
2014-04-03 02:24:15 +00:00
set -eu
set -o pipefail
Adds support for post-install scripts. Post install scripts are useful because they can perform tasks you want to handle after the OS/application install but before the first boot of the image. e.g: Clean the cache left by the package manager reducing the size of the image. Change-Id: I03e77f602192bbdce29c02999d1b57fac8051ddc Fixes: Bug #1145786
2013-04-15 10:31:04 +00:00
apt-get clean
Reference in New Issue
Copy Permalink