From 9a6a874abe6fcd9c021c6ae918c91f2e8de73fd3 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 11 May 2024 14:28:07 +0900 Subject: [PATCH] Install `eget`. --- cookbooks/base/default.rb | 1 + cookbooks/base/eget.rb | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 cookbooks/base/eget.rb diff --git a/cookbooks/base/default.rb b/cookbooks/base/default.rb index 107c88e..07657ff 100644 --- a/cookbooks/base/default.rb +++ b/cookbooks/base/default.rb @@ -35,6 +35,7 @@ end # Install the necessary packages: include_recipe './packages.rb' +include_recipe './eget.rb' # Lang Setting: include_recipe './lang.rb' diff --git a/cookbooks/base/eget.rb b/cookbooks/base/eget.rb new file mode 100644 index 0000000..a168e56 --- /dev/null +++ b/cookbooks/base/eget.rb @@ -0,0 +1,7 @@ +execute 'curl https://zyedidia.github.io/eget.sh | sh' do + not_if 'which eget' + cwd '/usr/local/bin/' +end + +execute 'chown root:root /usr/local/bin/eget' +execute 'chmod 755 /usr/local/bin/eget'