diff options
author | crupest <crupest@outlook.com> | 2022-10-30 22:44:26 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-10-30 22:44:26 +0800 |
commit | efdfc6feb5744d8ad4bd07e35fa8d662925e3e96 (patch) | |
tree | 54352395daf743185d88c6e9540b690e95f7e5d0 /docker/code-server/archlinux-setup-user.bash | |
parent | fc3eb7968a204c78153946e260289ff2f4c695e7 (diff) | |
download | crupest-efdfc6feb5744d8ad4bd07e35fa8d662925e3e96.tar.gz crupest-efdfc6feb5744d8ad4bd07e35fa8d662925e3e96.tar.bz2 crupest-efdfc6feb5744d8ad4bd07e35fa8d662925e3e96.zip |
...
Diffstat (limited to 'docker/code-server/archlinux-setup-user.bash')
-rwxr-xr-x | docker/code-server/archlinux-setup-user.bash | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docker/code-server/archlinux-setup-user.bash b/docker/code-server/archlinux-setup-user.bash new file mode 100755 index 0000000..2b39bd2 --- /dev/null +++ b/docker/code-server/archlinux-setup-user.bash @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +# check if we are in docker by CRUPEST_IN_DOCKER +if [ "${CRUPEST_IN_DOCKER}" != "true" ]; then + echo "This script is intended to be run in a docker container." + exit 1 +fi + +cd ~ || exit 1 + +mkdir data + +mkdir aur +cd aur || exit 1 + +# install all aur packages +for aur_package in ${CRUPEST_AUR_PACKAGES} ; do + echo "Installing ${aur_package} from AUR..." + git clone "https://aur.archlinux.org/${aur_package}.git" --depth 1 + pushd "${aur_package}" || exit 1 + makepkg -sr --noconfirm + makepkg --packagelist | sudo pacman -U --noconfirm - + popd || exit 1 +done |