aboutsummaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
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