summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-04-09 23:30:28 (EDT)
committer P. J. McDermott <pj@pehjota.net>2016-04-12 14:08:44 (EDT)
commitc59a75805af0fff9566ee22245696614ce9a508b (patch)
treed43d5d7251fb83642b12d692871bb8c42d87f60e /hosts
parent59ca728e9f4be0d22f0e8793858e1113db446b73 (diff)
downloadpc-inst-c59a75805af0fff9566ee22245696614ce9a508b.zip
pc-inst-c59a75805af0fff9566ee22245696614ce9a508b.tar.gz
pc-inst-c59a75805af0fff9566ee22245696614ce9a508b.tar.bz2
Fix XDG directory creation
Diffstat (limited to 'hosts')
-rw-r--r--hosts/alsvid23
-rw-r--r--hosts/cam13
2 files changed, 4 insertions, 2 deletions
diff --git a/hosts/alsvid2 b/hosts/alsvid2
index 06b2e7e..c8d0cd3 100644
--- a/hosts/alsvid2
+++ b/hosts/alsvid2
@@ -215,7 +215,8 @@ do_postinst()
# Create XDG directories.
sed 's/#.*$//; /^$/d;' "${target}/home/pj/.config/user-dirs.dirs" | \
while IFS='=' read var val; do
- eval "mkdir '${target}/home/pj/'${val}"
+ HOME='/home/pj'
+ eval "mkdir '${target}/'${val}"
done
# Add empty folder list to prevent Claws Mail wizard from running.
diff --git a/hosts/cam1 b/hosts/cam1
index f080e2b..d9f3d8f 100644
--- a/hosts/cam1
+++ b/hosts/cam1
@@ -169,7 +169,8 @@ do_postinst()
# Create XDG directories.
sed 's/#.*$//; /^$/d;' "${target}/home/cam/.config/user-dirs.dirs" | \
while IFS='=' read var val; do
- eval "mkdir '${target}/home/cam/'${val}"
+ HOME='/home/cam'
+ eval "mkdir '${target}/'${val}"
done
# Generate target's SSH keypair.