Skip to content
Browse files

Add script to live-config to install gems at boot

This will save the effort of rebuilding the live image when changes
are made to Concerto related Rubygems. The gems to be installed are
found in a directory on the boot medium.
  • Loading branch information...
1 parent bc14a34 commit 41003ff6a59d1f1f9b72670fdbdf600720582cad @asquared committed Jun 13, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 config/includes.chroot/lib/live/config/999-gem-hack
View
20 config/includes.chroot/lib/live/config/999-gem-hack
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# Find any gems that were added to the boot media and install them.
+
+Gem_hack ()
+{
+
+ echo -n " gem_hack"
+
+ Configure_config_server
+}
+
+Configure_config_server ()
+{
+ if [ -d /live/image/install_gems ]
+ find /live/image/install_gems -iname '*.gem' -exec gem install \{\} \;
+ fi
+}
+
+Config_server

0 comments on commit 41003ff

Please sign in to comment.
Something went wrong with that request. Please try again.