diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-11-19 15:23:28 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-11-19 15:23:28 +0000 |
commit | d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6 (patch) | |
tree | d83e1fe8b2852ee4a04e8ac969cfe87f51404695 /move | |
parent | 987857360874168e9106c8b3370773fbc0c83dee (diff) | |
download | drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.tar drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.tar.gz drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.tar.bz2 drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.tar.xz drakx-d1dc40dcd6c57c9fa529a2da311e8a7d031e1da6.zip |
.kde/share/cache is a symlink to a tmpfs directory to ensure the key doesn't
grow too much
Diffstat (limited to 'move')
-rw-r--r-- | move/move.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/move/move.pm b/move/move.pm index c0a0984c6..b3850c3c6 100644 --- a/move/move.pm +++ b/move/move.pm @@ -381,6 +381,15 @@ sub install_TrueFS_in_home { run_program::run('mount', '-o', 'bind', "$dir/$_", "/home/$user/$_"); } + + my $cache = "/tmp/.$user-cache"; + foreach (qw(.kde/share/cache)) { + mkdir_p("$cache/$_"); + mkdir_p("/home/$user/" . dirname($_)); + symlink "$cache/$_", "/home/$user/$_"; + } + run_program::run('chown', '-R', "$user.$user", $cache); + $ENV{ICEAUTHORITY} = "$dir/.ICEauthority"; } } |