Adjust the way private scripts are run

- the exact scripts that are run by `run-private-scripts`
  is not disclosed here
- the private scripts were adjusted so that they can be run
  as often as desired and always result in the same idempotent
  result
- consequently, the private scripts are now always triggered
  by `update-machine` as well
This commit is contained in:
Alexander Hess 2023-05-04 22:14:35 +02:00
parent f3f2417442
commit ac4bad32f5
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -140,6 +140,8 @@ _restore_gnome() {
run-private-scripts() { # in the Nextcloud
sudo --validate || return
if [ -d "$HOME/data/getraenkemarkt/shell" ]; then
for file in $HOME/data/getraenkemarkt/shell/*.sh; do
source $file
@ -160,6 +162,7 @@ update-machine() {
_update_zsh
_update_python
_restore_gnome
run-private-scripts
sudo --reset-timestamp
}