2d743be3bb
- /system/usr/local/share/run_onchange_after_setup-share-folder - /system/var/log/user/run_onchange_after-symlink-user-logs - /system/usr/share/run_onchange_after_setup-share-folder - /system/etc/default/modify_grub - /system/boot/efi/EFI/qubes/modify_grubenv - /home/.chezmoiscripts/universal/run_onchange_after_14_install-aqua-packages.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_21-import-dconf-settings.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_20-apply-settings.mjs.tmpl - /system/usr/local/bin/executable_squash-symlink - /system/etc/modify_environment - /home/.chezmoiscripts/universal/run_onchange_after_19-theme-files.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_14_install-aqua-packages.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_21-dconf-settings.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_20-misc-settings.mjs.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_5-log-config.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_4-environment-profile.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_60-grub-settings.tmpl - /home/dot_local/bin/executable_rclone-mount - /home/.chezmoidata.yaml
13 lines
495 B
Bash
13 lines
495 B
Bash
#!/usr/bin/env bash
|
|
|
|
# home directories: {{ output ("find" .host.homeParentFolder "-maxdepth" "1" "-type" "d" "|" "xargs" "echo") }}
|
|
|
|
{{ includeTemplate "universal/profile" }}
|
|
{{ includeTemplate "universal/logg" }}
|
|
|
|
find /home -maxdepth 1 -type d | while read HOME_DIR; do
|
|
USER_FOLDER="$(echo "$HOME_DIR" | sed 's/\/\([^\/]*\)/\1/')"
|
|
if [ ! -d "/var/log/user/$USER_FOLDER" ] && [ -d "$HOME_DIR/.local/log" ]; then
|
|
sudo ln -s "$HOME_DIR/.local/log" "/var/log/user/$USER_FOLDER"
|
|
fi
|
|
done
|