Skip to content

Instantly share code, notes, and snippets.

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 andrewsolomon/8efab606e6485f2624afb9a7f84fd467 to your computer and use it in GitHub Desktop.
Save andrewsolomon/8efab606e6485f2624afb9a7f84fd467 to your computer and use it in GitHub Desktop.
shellinabox task
task "shellinabox", group => "ebox", sub {
say "UPTO 1";
file "/tmp/shellinabox.deb",
source => "deb/shellinabox_2.19_amd64.deb";
say "UPTO 2";
sudo sub {
run 'dpkg shellinabox',
command => 'dpkg -i /tmp/shellinabox.deb';
};
say "UPTO 3";
sudo sub {
run 'apt-get clean-up',
command => 'apt-get -f install';
};
say "UPTO 4";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment