Configure Nextcloud

- some keys in ~/.config/Nextcloud/nextcloud.cfg are set by
  the machine automatically when in use
- integrate Nextcloud in XDG user directories
- make Nextcloud run on login in Gnome
- add `run-private-scripts` utility to run shell scripts
  stored in the Nextcloud
This commit is contained in:
Alexander Hess 2022-08-09 01:06:47 +02:00
commit 6b022d29e3
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
5 changed files with 108 additions and 0 deletions

View file

@ -280,6 +280,15 @@ _update_zplug() {
}
run-private-scripts() { # in the Nextcloud
if [ -d "$HOME/data/getraenkemarkt/shell" ]; then
for file in $HOME/data/getraenkemarkt/shell/*.sh; do
source $file
done
fi
}
update-machine() {
sudo --validate || return