Skip to content

Instantly share code, notes, and snippets.

@hugoduncan
Created March 8, 2012 20:00
Show Gist options
  • Save hugoduncan/2003077 to your computer and use it in GitHub Desktop.
Save hugoduncan/2003077 to your computer and use it in GitHub Desktop.
install-deb action
(action/def-bash-action install-deb
"Install a deb file. Source options are as for remote file."
[request deb-name & {:as options}]
(stevedore/do-script
(apply remote-file* request deb-name (apply concat options))
(stevedore/checked-script
(format "Install deb %s" deb-name)
(dpkg -i --skip-same-version ~deb-name))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment