summaryrefslogtreecommitdiff
path: root/config/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/install.sh')
-rw-r--r--config/install.sh24
1 files changed, 13 insertions, 11 deletions
diff --git a/config/install.sh b/config/install.sh
index a93451b..0de9b1c 100644
--- a/config/install.sh
+++ b/config/install.sh
@@ -81,10 +81,14 @@ wget -q -O /etc/apt/sources.list.d/microsoft-prod.list https://packages.microsof
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list
-curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe &
+curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
echo -e "section_end:$(date +%s):install_dotnet\r\e[0K"
echo -e "section_start:$(date +%s):install_asdf\r\e[0K==> Installing asdf…"
+dpkg --install "$(find /opt/toolcache/ -name "license-management*.deb")"
+rm -fr /root
+ln -s /opt/gitlab /root
+
mkdir -p "$ASDF_DATA_DIR"
git clone https://github.com/asdf-vm/asdf.git "$ASDF_DATA_DIR"
cd "$ASDF_DATA_DIR"
@@ -96,7 +100,7 @@ git checkout "$(git describe --abbrev=0 --tags)"
while IFS= read -r line; do
tool=$(echo "$line" | cut -d' ' -f1)
asdf plugin-add "$tool"
-done < "$HOME/.tool-versions"
+done < "/opt/gitlab/.tool-versions"
bash "$ASDF_DATA_DIR/plugins/nodejs/bin/import-release-team-keyring"
asdf install
asdf reshim
@@ -104,7 +108,7 @@ asdf current
for version in $(asdf list python); do
asdf shell python "$version"
- pip download -d "$HOME/.config/virtualenv/app-data" pip-licenses pip setuptools wheel
+ pip download -d "/opt/gitlab/.config/virtualenv/app-data" pip-licenses pip setuptools wheel
done
wait
echo -e "section_end:$(date +%s):install_asdf\r\e[0K"
@@ -127,11 +131,11 @@ rm -fr "$ASDF_DATA_DIR/docs" \
"$ASDF_DATA_DIR"/installs/ruby/**/lib/ruby/gems/**/cache \
"$ASDF_DATA_DIR"/installs/**/**/share \
"$ASDF_DATA_DIR"/test \
- "$HOME"/.config/configstore/update-notifier-npm.json \
- "$HOME"/.config/pip/selfcheck.json \
- "$HOME"/.gem \
- "$HOME"/.npm \
- "$HOME"/.wget-hsts \
+ /opt/gitlab/.config/configstore/update-notifier-npm.json \
+ /opt/gitlab/.config/pip/selfcheck.json \
+ /opt/gitlab/.gem \
+ /opt/gitlab/.npm \
+ /opt/gitlab/.wget-hsts \
/etc/apache2/* \
/etc/bash_completion.d/* \
/etc/calendar/* \
@@ -186,7 +190,5 @@ wait
rm -fr \
/opt/asdf/ \
/usr/lib/gcc \
- /usr/lib/mono \
- /usr/lib/rustlib \
- /usr/share/dotnet
+ /usr/lib/rustlib
echo -e "section_end:$(date +%s):compress_files\r\e[0K"