aboutsummaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-01 14:37:28 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-02-01 14:37:28 -0200
commita795faa0cc86010d78f8ec03034f4d8c21b1d274 (patch)
treecd2c3714671a4419aadc7eae5c98411f1ea57bd8 /modules/profile
parent553c601068271a2f596ca3e5d53182f5395b369d (diff)
downloadmetadot-a795faa0cc86010d78f8ec03034f4d8c21b1d274.tar.gz
metadot-a795faa0cc86010d78f8ec03034f4d8c21b1d274.tar.bz2
Make sure some basic symlinks exist
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile.dot.link15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/profile/profile.dot.link b/modules/profile/profile.dot.link
index 4c4849a..77921d6 100644
--- a/modules/profile/profile.dot.link
+++ b/modules/profile/profile.dot.link
@@ -43,6 +43,21 @@ fi
# Make sure basic folder structure exists
mkdir -p $HOME/{apps,file,html,mail,temp}
+# Make sure data symlink exists
+if [ -e "/var/data" ] && [ ! -e "$HOME/data" ]; then
+ ln -s /var/data $HOME/data
+fi
+
+# Make sure code symlink exists
+if [ -e "/var/data/code" ] && [ ! -e "$HOME/code" ]; then
+ ln -s /var/data/code $HOME/code
+fi
+
+# Make sure download symlink exists
+if [ -e "/var/data/load" ] && [ ! -e "$HOME/load" ]; then
+ ln -s /var/data/load $HOME/load
+fi
+
# Custom configuration
if [ -e "$HOME/.custom/profile" ]; then
. $HOME/.custom/profile