From b063f1a07182fa38cb8866afa1e1ded4ff98eeae Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 25 Apr 2022 20:36:15 +0900 Subject: [PATCH] install apt packages --- etc/apt/keyrings/docker-archive-keyring.gpg | Bin 0 -> 2760 bytes .../keyrings/microsoft-archive-keyring.gpg | Bin 0 -> 641 bytes etc/apt/keyrings/slack-archive-keyring.gpg | Bin 0 -> 2834 bytes .../keyrings/tailscale-archive-keyring.gpg | Bin 0 -> 2288 bytes etc/apt/sources.list.d/code.list | 1 + etc/apt/sources.list.d/docker-ce.list | 1 + .../sources.list.d/docker-compose-plugin.list | 1 + .../sources.list.d/microsoft-edge-stable.list | 1 + etc/apt/sources.list.d/slack-desktop.list | 1 + etc/apt/sources.list.d/tailscale.list | 1 + install | 23 ++++++++++++++++-- 11 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 etc/apt/keyrings/docker-archive-keyring.gpg create mode 100644 etc/apt/keyrings/microsoft-archive-keyring.gpg create mode 100644 etc/apt/keyrings/slack-archive-keyring.gpg create mode 100644 etc/apt/keyrings/tailscale-archive-keyring.gpg create mode 100644 etc/apt/sources.list.d/code.list create mode 100644 etc/apt/sources.list.d/docker-ce.list create mode 100644 etc/apt/sources.list.d/docker-compose-plugin.list create mode 100644 etc/apt/sources.list.d/microsoft-edge-stable.list create mode 100644 etc/apt/sources.list.d/slack-desktop.list create mode 100644 etc/apt/sources.list.d/tailscale.list diff --git a/etc/apt/keyrings/docker-archive-keyring.gpg b/etc/apt/keyrings/docker-archive-keyring.gpg new file mode 100644 index 0000000000000000000000000000000000000000..e5dc8cfda8e5d37f69956520048140c9baab9803 GIT binary patch literal 2760 zcmV;(3ODtc0u2OMt=cL95CGv?mVEyU+3FP&iF2?(b<6@*g&o7k_7E+vfpyDoj$zjA zGV5WMs<5X`yaKG4`1D^?%Ti#*f9W@2In1 z#V#$cv(vuM$1G5W?m=#;?M(Cxek`gIB|ZeE>e*?4HA0Yo?Le89KO(!1UAgKnfV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z@bg1GH?-qvwm-X<-FLc10DGeOXPJoKZBi(lC;b~UD47dCC|Q14vMX|JX%(AQ#KUJi zFens zI471ip#>ci4?8r1Rb3JY5j=nizdBIK`?{&Iv|Orv$;LX{LBb1dzjP;rQh`VkYt(L# zKnm%vs_FmQ83Q^EiBoE(Z` zYE%1Uo3JRx+dO*J^=9yWl-wR+h%&~AwR+`&pEwZLh_=~yt}4hgo0aaV^s8?zBF+=~ G*FORFpf800 literal 0 HcmV?d00001 diff --git a/etc/apt/sources.list.d/code.list b/etc/apt/sources.list.d/code.list new file mode 100644 index 0000000..2f02a00 --- /dev/null +++ b/etc/apt/sources.list.d/code.list @@ -0,0 +1 @@ +deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] http://packages.microsoft.com/repos/code stable main diff --git a/etc/apt/sources.list.d/docker-ce.list b/etc/apt/sources.list.d/docker-ce.list new file mode 100644 index 0000000..2d056e4 --- /dev/null +++ b/etc/apt/sources.list.d/docker-ce.list @@ -0,0 +1 @@ +deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu jammy stable diff --git a/etc/apt/sources.list.d/docker-compose-plugin.list b/etc/apt/sources.list.d/docker-compose-plugin.list new file mode 100644 index 0000000..a004ed2 --- /dev/null +++ b/etc/apt/sources.list.d/docker-compose-plugin.list @@ -0,0 +1 @@ +# docker-ce.list diff --git a/etc/apt/sources.list.d/microsoft-edge-stable.list b/etc/apt/sources.list.d/microsoft-edge-stable.list new file mode 100644 index 0000000..166c2bb --- /dev/null +++ b/etc/apt/sources.list.d/microsoft-edge-stable.list @@ -0,0 +1 @@ +deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/edge stable main diff --git a/etc/apt/sources.list.d/slack-desktop.list b/etc/apt/sources.list.d/slack-desktop.list new file mode 100644 index 0000000..8563798 --- /dev/null +++ b/etc/apt/sources.list.d/slack-desktop.list @@ -0,0 +1 @@ +deb [signed-by=/usr/share/keyrings/slack-archive-keyring.gpg] https://packagecloud.io/slacktechnologies/slack/debian/ jessie main diff --git a/etc/apt/sources.list.d/tailscale.list b/etc/apt/sources.list.d/tailscale.list new file mode 100644 index 0000000..95dcf82 --- /dev/null +++ b/etc/apt/sources.list.d/tailscale.list @@ -0,0 +1 @@ +deb [signed-by=/usr/share/keyrings/tailscale-archive-keyring.gpg] https://pkgs.tailscale.com/stable/ubuntu jammy main diff --git a/install b/install index e0efebd..cf71eea 100755 --- a/install +++ b/install @@ -2,7 +2,7 @@ set -euo pipefail cd -- "$(dirname -- "$0")" -function main() { +function install_dotfiles() { local home local dotfile home=$(eval echo ~"${SUDO_USER:-$(id -un)}") @@ -17,4 +17,23 @@ function main() { done } -main +function install_apt_packages() { + local packages + local package + packages=() + for package in etc/apt/sources.list.d/*.list; do + package=${package##*/} + package=${package%.list} + packages+=("$package") + done + + rsync -rv etc/apt/keyrings/ /usr/share/keyrings/ + rsync -rv etc/apt/sources.list.d/ /etc/apt/sources.list.d/ + apt update + apt install -y "${packages[@]}" +} + +install_dotfiles +(($(id -u) == 0)) \ + && [[ -d /etc/apt/sources.list.d ]] \ + && install_apt_packages