]> gitweb.fluxo.info Git - metadot.git/commitdiff
Make sure some basic symlinks exist
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 16:37:28 +0000 (14:37 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 16:37:28 +0000 (14:37 -0200)
modules/profile/profile.dot.link

index 4c4849acc02524681581771044baddf98bfdd7c4..77921d6976554fe5b410e4200316333c3d830a54 100644 (file)
@@ -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