update script

This commit is contained in:
Daniel Sommer 2024-08-27 13:05:30 +02:00
parent 5d7420e38f
commit 1bb1be2064

View file

@ -7,7 +7,7 @@
swappiness="25"
tmpfs_size="1G"
repository_protocol="https"
repository_version="v3.18"
repository_version="v3.20"
# execution
printf "|>> executing alpine install script...\n"
@ -50,8 +50,7 @@ apk add --force-refresh --no-cache --progress \
unzip \
rsync \
dropbear \
openssh-client \
rxvt-unicode-terminfo
openssh-client
read -p "|> enter additional packages to install: " packages
[[ "$packages" ]] && packages="$(printf "$packages" | tr '\n' ' ')" && apk add --force-refresh --no-cache --progress $packages
@ -120,6 +119,14 @@ sed -i 's/keyword -docker -jail -lxc -prefix -systemd-nspawn -vserver/keyword -d
printf "|> remounting '/etc/fstab' entries...\n"
mount -a
printf "|> configuring git...\n"
git config --global user.name "velvettear"
git config --global user.email "daniel.sommer@velvettear.de"
git config --global credential.helper store
sudo -u "$user" git config --global user.name "velvettear"
sudo -u "$user" git config --global user.email "daniel.sommer@velvettear.de"
sudo -u "$user" git config --global credential.helper store
printf "|> customizing environment...\n"
git clone -b "lxc-alpine" "https://git.velvettear.de/velvettear/etc.git" "/etc/velvettear"
chown -R "$user":users "/etc/velvettear"