]> gitweb.fluxo.info Git - hydra.git/commitdiff
Create bootless repository on hydra init
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 28 Feb 2014 17:03:11 +0000 (14:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 28 Feb 2014 17:03:11 +0000 (14:03 -0300)
share/hydra/init

index d8408e604d2b0fe9faace8c8c2bf3329fa92465d..82ce114054ec467908ff944017f192a9c16fed01 100755 (executable)
@@ -48,24 +48,26 @@ mkdir -p $BASEDIR
 chmod 700 $BASEDIR
 echo "$HYDRA=\"$BASEDIR\"" >> $CONFIG
 
-# Optional remote configuration
+# Clone configuration repository or setup a new hydra
 if [ ! -z "$REMOTE" ]; then
-  # Clone configuration repository
   git clone $REMOTE $BASEDIR/config
 else
-  # TODO: setup other repositories
-  # No remote was given, so we assume this is a shiny new hydra!
+  # Create config repository
   if [ ! -d "$BASEDIR/config" ]; then
     # Setup repository from template
     cp -r $APP_BASE/share/config $BASEDIR/config
     hydra_git_init $BASEDIR/config
   fi
 
+  # Create doc repository
   if [ ! -d "$BASEDIR/doc" ]; then
     mkdir -p "$BASEDIR/doc"
     echo "Use this repository for notes about Hydra $HYDRA" > $BASEDIR/doc/README.md
     hydra_git_init $BASEDIR/doc
   fi
+
+  # Create bootless repository
+  hydra $HYDRA bootless init
 fi
 
 # Sync repositories