diff options
author | crupest <crupest@outlook.com> | 2024-08-15 00:08:43 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-08-15 00:08:43 +0800 |
commit | 909c5e8aa53017eaffd4171835b3c66949c64f7f (patch) | |
tree | 09504e7755b7803e518baaa11d255f35ed6c9817 /docker/crupest-debian-dev/bootstrap/setup-base.bash | |
parent | 1bca7471d864bf859a6189a87adf92856729ec97 (diff) | |
parent | d50545a36323e7a9775ab933021a94a9d98058f4 (diff) | |
download | crupest-909c5e8aa53017eaffd4171835b3c66949c64f7f.tar.gz crupest-909c5e8aa53017eaffd4171835b3c66949c64f7f.tar.bz2 crupest-909c5e8aa53017eaffd4171835b3c66949c64f7f.zip |
Merge branch 'debian-dev'
Diffstat (limited to 'docker/crupest-debian-dev/bootstrap/setup-base.bash')
-rwxr-xr-x | docker/crupest-debian-dev/bootstrap/setup-base.bash | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docker/crupest-debian-dev/bootstrap/setup-base.bash b/docker/crupest-debian-dev/bootstrap/setup-base.bash new file mode 100755 index 0000000..ce3372f --- /dev/null +++ b/docker/crupest-debian-dev/bootstrap/setup-base.bash @@ -0,0 +1,25 @@ +#! /usr/bin/env bash + +set -e + +. /bootstrap/func.bash + +echo "Setting up basic system function..." + +echo "Installing basic packages..." +apt-get install -y apt-utils +apt-get install -y locales procps vim less man bash-completion software-properties-common rsync curl wget +echo "Installing basic packages done." + +echo "Setting up locale..." +localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 +echo "Setting up locale done." + +echo "Creating data/state dir..." +mkdir -p /data /state +chown $CRUPEST_DEBIAN_DEV_USER:$CRUPEST_DEBIAN_DEV_USER /data /state +echo "Creating data dir done." + +append-bash-profile bash-completion.bash + +echo "Setting up basic system function done." |