Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/download-youtube-id
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ validate_plex_perms() {

local sudo_timeout=10s
local not_plex
not_plex=$(find "$out_dir" -not -user plex -or -not -group plex)
not_plex=$(find "$out_dir" -not -group plex)

if [ "$not_plex" ]; then
log $LINENO sudo required to change ownership of files to plex \(10s\)

if ! timeout --kill-after="$sudo_timeout" "$sudo_timeout" sudo chown -R plex:plex "$out_dir"; then
true # ignore timeout here, it's optional
fi
for file in $not_plex; do
timeout --kill-after="$sudo_timeout" "$sudo_timeout" sudo chown :plex "$file" || true
done
fi
}

Expand Down
6 changes: 5 additions & 1 deletion bin/system-up
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,11 @@ mise_install_globals() {
for ((i = 0; i < ${#packages[@]}; i++)); do
npm install --global "${packages[i]}"
done
}

# export PATH="$PATH:$HOME/.local/share/mise/installs/node/$(node -v | tr -d v)/bin"
cleanup_packages() {
# 19GB of build dependencies of llama.cpp
yay --remove --recursive --recursive rocm-hip-sdk
}

### script ###
Expand All @@ -240,6 +243,7 @@ services start postgresql
refresh_collations

cleanup "$pg_update"
cleanup_packages
kexec_prompt ""
success_message

Expand Down
Loading
Loading