Skip to content

Instantly share code, notes, and snippets.

@wbotelhos
Created January 11, 2018 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wbotelhos/c75eb1a577ab0b0bae65155b45556ffa to your computer and use it in GitHub Desktop.
Save wbotelhos/c75eb1a577ab0b0bae65155b45556ffa to your computer and use it in GitHub Desktop.
How to Build a Debian Package
cd /tmp
mkdir nginx-pagespeed

mkdir -p ./etc
cp -rp    /etc/nginx ./etc

mkdir -p ./var/lib
cp -rp    /var/lib/nginx ./var/lib

mkdir -p ./var/log/nginx
cp -rp    /var/log/nginx ./var/log

mkdir -p ./var/run/nginx
cp -rp    /var/run/nginx ./var/run

dpkg-deb --build nginx-pagespeed_0.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment