Changes

From SME Server
Jump to navigationJump to search
986 bytes added ,  20:52, 4 November 2014
Line 140: Line 140:  
===Create a db key===
 
===Create a db key===
 
the generic command is :
 
the generic command is :
  /sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
+
  db dbfile set key type [prop1 val1] [prop2 val2] ...
    
  dbfile : choose the database in /home/e-smith/db
 
  dbfile : choose the database in /home/e-smith/db
 
  key : the name of key
 
  key : the name of key
  type : generally 'service' or configuration but it can be other things as webbapps or url or ...
+
  type : generally 'service' or 'configuration' but it can be other things as webbapps or url or ...
 
   
 
   
 
If you want to create a keys called 'plop' in the configuration database with a type as 'configuration you can do like this
 
If you want to create a keys called 'plop' in the configuration database with a type as 'configuration you can do like this
Line 161: Line 161:  
     PublicAccess=private
 
     PublicAccess=private
 
     WpLang=en
 
     WpLang=en
 +
    status=enabled
 +
 +
===change values of properties===
 +
The generic command line is
 +
db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...
 +
 +
dbfile : choose the database in /home/e-smith/db
 +
key : the name of key
 +
 +
Then if you want to modify some values of our example above
 +
db configuration setprop plop PublicAccess public WpLang fr
 +
or
 +
config setprop plop PublicAccess public WpLang fr
 +
and to verify
 +
config show plop
 +
 +
plop=configuration
 +
    DbName=wordpress
 +
    DbUser=wordpress
 +
    Name=wordpress
 +
    PublicAccess=public
 +
    WpLang=fr
 +
    status=enabled
 +
 +
===Create a property under a key===
 +
 +
Same as above, really not difficult
 +
 +
db configuration setprop plop PlopTheWorld YES           
 +
or
 +
config setprop plop PlopTheWorld YES           
 +
 +
and to display modification
 +
 +
db configuration show plop
 +
or
 +
config show plop
 +
plop=configuration
 +
    DbName=wordpress
 +
    DbUser=wordpress
 +
    Name=wordpress
 +
    PlopTheWorld=YES    <----------Here
 +
    PublicAccess=public
 +
    WpLang=fr
 
     status=enabled
 
     status=enabled
  

Navigation menu