adding conditional to abuild setup - bootstrap - Bootstrap script for my alpine linux desktop.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit b45bd1ac86e139fdf942629501e9d4c390f04852
(DIR) parent 48a4a586c35d86c04acd78f83fd135c9e889bc24
(HTM) Author: Jay Scott <me@jay.scot>
Date: Tue, 10 Jan 2023 22:37:48 +0000
adding conditional to abuild setup
Diffstat:
M install.sh | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/install.sh b/install.sh
@@ -28,16 +28,18 @@ apk add urlview shfmt shellcheck openssh gemget yt-dlp pass fzf mpv \
echo "── installing audio"
apk add pipewire-pulse pamixer dbus dbus-openrc pipewire wireplumber \
- rtkit pipewire-alsa moc
+ rtkit pipewire-alsa cmus
echo "── installing documentation"
apk add mandoc mandoc-apropos man-pages docs
echo "── setup abuild environment"
-mkdir -p /var/cache/distfiles
-chmod a+w /var/cache/distfiles
-chgrp abuild /var/cache/distfiles
-chmod g+w /var/cache/distfiles
+if [ ! -d /var/cache/disfiles ]; then
+ mkdir -p /var/cache/distfiles
+ chmod a+w /var/cache/distfiles
+ chgrp abuild /var/cache/distfiles
+ chmod g+w /var/cache/distfiles
+fi
if [ ! -d "/home/$user" ]; then
echo "── creating user $user"