Changes

Jump to navigation Jump to search
Line 143: Line 143:  
  cp -p /tmp/createlinks .
 
  cp -p /tmp/createlinks .
    +
# The DB fragments should be created as files
 +
mkdir -p root/etc/e-smith/db/configuration/defaults/loggerdemo
 +
echo "service"  > !$/type
 +
echo "enabled"  > !$/status
 +
echo "10"      > !$/Interval
 +
 
Your directory structure should now look like this:  
 
Your directory structure should now look like this:  
   Line 150: Line 156:  
  ./root/etc/e-smith/web/functions/loggerdemo
 
  ./root/etc/e-smith/web/functions/loggerdemo
 
  ./root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/loggerdemo.pm
 
  ./root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/loggerdemo.pm
 +
./root/etc/e-smith/db/configuration/defaults/loggerdemo/{type|status|Interval}
 
  ./createlinks
 
  ./createlinks
   Line 185: Line 192:  
  %build
 
  %build
 
  perl createlinks
 
  perl createlinks
  −
## NEW ADVICE, DB fragments should be created as files
  −
DEFAULTS=root/etc/e-smith/db/configuration/defaults/loggerdemo
  −
mkdir -p $DEFAULTS
  −
  −
echo "service"  > $DEFAULTS/type
  −
echo "enabled"  > $DEFAULTS/status
  −
echo "10"      > $DEFAULTS/Interval
   
   
 
   
 
  %install
 
  %install

Navigation menu