diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update-everything.sh | 34 | ||||
-rwxr-xr-x | bin/update-scripts-repo.sh | 5 |
2 files changed, 11 insertions, 28 deletions
diff --git a/bin/update-everything.sh b/bin/update-everything.sh index 5845b71..e69f705 100755 --- a/bin/update-everything.sh +++ b/bin/update-everything.sh @@ -9,7 +9,6 @@ # printf_accross_width # local_update # remote_update -# non_free_update # pip_update # update_scripts_repo # update_whatis_db @@ -53,25 +52,10 @@ remote_update(){ printf_n_notify "remote update" - ansible-playbook --inventory-file "$HOME/workbench/ansible/hosts" \ - "$HOME/workbench/ansible/update_adjutor.yml" - -} - - -# Update non-free xbps packages -non_free_update(){ - - printf_n_notify "non-free update" - - pushd ~/workbench/auto-void-packages || exit 1 - ./update-git-repo.sh - cd ../void-packages || exit 1 - ./xbps-src pkg discord && \ - $xi --repository=hostdir/binpkgs/nonfree discord - ./xbps-src pkg spotify && \ - $xi --repository=hostdir/binpkgs/nonfree spotify - popd || exit 1 + export ANSIBLE_CONFIG="$HOME/workbench/homelab-iac/ansible/ansible.cfg" + ansible-playbook -v -b \ + --inventory-file "$HOME/workbench/homelab-iac/ansible/inventory.yaml" \ + "$HOME/workbench/homelab-iac/ansible/playbooks/update_system.yml" } @@ -81,9 +65,11 @@ pip_update(){ printf_n_notify "pip update" - python3 -m pip list --outdated --format=json | \ + "$HOME/workbench/pyvenv/bin/pip3" install --upgrade pip + + "$HOME/workbench/pyvenv/bin/pip3" list --outdated --format=json | \ jq -r '.[] | "\(.name)==\(.latest_version)"' | \ - xargs -n1 pip3 install -U + xargs -n1 "$HOME/workbench/pyvenv/bin/pip3" install --upgrade } @@ -116,9 +102,7 @@ local_update printf_accross_width "%" remote_update printf_accross_width "%" -non_free_update -printf_accross_width "%" -#pip_update # 2023/01/09 : currently not a stable solution to update pip packages +pip_update printf_accross_width "%" update_scripts_repo printf_accross_width "%" diff --git a/bin/update-scripts-repo.sh b/bin/update-scripts-repo.sh index 03a20ee..22e0807 100755 --- a/bin/update-scripts-repo.sh +++ b/bin/update-scripts-repo.sh @@ -7,9 +7,8 @@ pushd "$SCRIPTS_REPO_PATH" || exit 1 cp -rv "$HOME/.local/usr/local/bin" . cp -rv "$HOME/workbench/auto-void-packages" . -cp -rv "$HOME/workbench/ansible" . -git status | less && git diff | less -git add . && git commit && git push -v --progress +git status | less +git add --patch . && git commit -v && git push -v --progress popd || exit 1 |