Koozali.org: home of the SME Server

Db tutorial need troubleshooters

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Db tutorial need troubleshooters
« on: November 11, 2014, 09:42:01 AM »
I have worked on the db tutorial, It was not nice and needed some works. I need your eyes to valid the work, please go ahead

http://wiki.contribs.org/Db_command_tutorial

For beginners or less familiars that could be nice you read the howto and ask what you do not understand, the howto was made for you, not for sme gurus who know the db command since years.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline nicolatiana

  • *
  • 724
  • +0/-0
Re: Db tutorial need troubleshooters
« Reply #1 on: November 11, 2014, 06:04:35 PM »
It seems fine; I'll give a closer look this evening.

Maybe another useful addiction would be an updated list of variables: the present one (http://wiki.contribs.org/DB_Variables_Configuration#Database_variables) it's incomplete. I don't know: is it if possible to extract them automatically from the code with a perl script ?

Nicola
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Db tutorial need troubleshooters
« Reply #2 on: November 11, 2014, 07:16:17 PM »
Honestly nicolatiana that would be good! I'm sure that a lot of db are not know :)

in a two minutes script you can search like this for db

this one give us some db but not a lot
Code: [Select]
grep -srni '_prop' /etc/e-smith/templates|less
or this one which is much more verbose

Code: [Select]
grep -srni '${[A-Za-z0-9]\|$[A-Za-z0-9]\|_prop' /etc/e-smith/templates*| grep '}' |less
we look here about  $key{propriety} || 'default_value' or ${key}{propriety} || 'default_value'

good hunt
« Last Edit: November 11, 2014, 07:30:15 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!