Difference between revisions of "Talk:DB Variables Configuration"
m |
(Answer and request confirmation of facts) |
||
Line 18: | Line 18: | ||
---- | ---- | ||
Angle brackets around the key and prop markers.<br /> | Angle brackets around the key and prop markers.<br /> | ||
− | Split delete and reset.<br | + | Split delete and reset.<br /> |
English corrections.<br /> | English corrections.<br /> | ||
Line 25: | Line 25: | ||
Yes, my reading is that it just returns defaults on those missing. | Yes, my reading is that it just returns defaults on those missing. | ||
+ | |||
+ | That is my reading as well but want to be absolutely sure. B-)<br /> | ||
+ | [[User:Allsorts|Allsorts]] ([[User talk:Allsorts|talk]]) 13:54, 14 February 2013 (MST) | ||
The angle brackets is how I always indicate that something is a marker rather than what you actually type. What is the contribs.org style? | The angle brackets is how I always indicate that something is a marker rather than what you actually type. What is the contribs.org style? | ||
Line 35: | Line 38: | ||
The first command syntax is original text, what are you suggesting, change it or change the others | The first command syntax is original text, what are you suggesting, change it or change the others | ||
[[User:Trex|Terry Fage]] ([[User talk:Trex|talk]]) 19:10, 13 February 2013 (MST) | [[User:Trex|Terry Fage]] ([[User talk:Trex|talk]]) 19:10, 13 February 2013 (MST) | ||
+ | |||
+ | Change the "db accounts" to "config" if the config version is the one that works across all db's, which I think it is.<br /> | ||
+ | [[User:Allsorts|Allsorts]] ([[User talk:Allsorts|talk]]) 13:54, 14 February 2013 (MST) |
Revision as of 21:54, 14 February 2013
Following section to with new para to replace current text
Setting db variables to default values
Any db variable that has a default value can be reset to the default by deleting the variable entirely, then re-initializing the default database values as follows:
config delprop <key> <prop> /etc/e-smith/events/actions/initialize-default-databases
Delete a property value
To delete the property
db accounts delprop <key> <prop>
Reset a property value
To reset to an empty value
db accounts setprop <key> <prop> ''
Angle brackets around the key and prop markers.
Split delete and reset.
English corrections.
Questions:
Does initialize-default-databases only set the defaults on poperties that are missing? If so I think that needs to be stated, I'd not want to set the entire db to defaults...
Yes, my reading is that it just returns defaults on those missing.
That is my reading as well but want to be absolutely sure. B-)
Allsorts (talk) 13:54, 14 February 2013 (MST)
The angle brackets is how I always indicate that something is a marker rather than what you actually type. What is the contribs.org style?
Cool, do it..
"config ..." or "db accounts ...", let's be consistent please. "db accounts ..." would only work if the <key> <prop> is in the accounts db wouldn't it? "config ..." works across all the db's doesn't it?
Allsorts (talk) 19:02, 13 February 2013 (MST)
The first command syntax is original text, what are you suggesting, change it or change the others Terry Fage (talk) 19:10, 13 February 2013 (MST)
Change the "db accounts" to "config" if the config version is the one that works across all db's, which I think it is.
Allsorts (talk) 13:54, 14 February 2013 (MST)