Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire] Spells that edit httpd.conf

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: "Dufflebunk" <dufflebunk AT go-nix.ca>
  • To: "Eric Sandall" <eric AT sandall.us>, "sm-grimoire AT lists.ibiblio.org"@achilles.go-nix.ca
  • Subject: Re: [SM-Grimoire] Spells that edit httpd.conf
  • Date: Fri, 10 Jan 2003 18:30:19 -0400

Nooo! Messing with another programs conf is a Bad Thing. Not only might cast
--fix detect it as a bad file, it's inviting breakage of the other program.
If it is done, the only way it should be done is to have a section a la:
; DO NOT EDIT BETWEEN THESE LINES
; ADDED BY SPELL PLONI
some stuff = for config
; DONE AUTOMATICALY GENERATED SECTION

Then the sections can be detected automaticaly... but still not a good idea
IMHO.


--------- Original Message --------
> Pierre Abbat said:
> &gt; I'm writing a spell that adds a line to httpd.conf. Now suppose that
> &gt; there are two spells, ploni and elmoni, which both add lines to
> &gt; httpd.conf. Neither depends on the other. You cast ploni, then cast
> &gt; elmoni, then dispel ploni. What happens? What should happen?
> &gt;
> &gt; phma
>
> For this, perhaps have the spell take a before and after &quot;shot&quot;
of
> httpd.conf, using 'diff -u', and store this information in
> ${SPELL_CONFIG}, perhaps (thoughts on this, anyone? Is there a better way
> in sorcery to do this?). Then, in POST_REMOVE, have the spell un-apply
> the diff, and it will remove the change it made (may have to turn on
> mucho-fuzziness, as the user may modify the file and change the line
> numbers of the change).
>
> -One of Four
> a.k.a. sandalle
>
> --
> PGP Key 0x5C8D199A5A317214
> http://search.keyserver.net:11371/pks/lookup?op=get&amp;search=0x5A317214
>
> Eric Sandall | Source Mage GNU/Linux Developer
> eric AT sandall.us | http://www.sourcemage.org/
> http://www.sandall.us/~sandalle/ | SysAdmin @ Inst. Shock Physics @ WSU
> http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
>
>
> _______________________________________________
> SM-Grimoire mailing list
> SM-Grimoire AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
>
>
>
>




Archive powered by MHonArc 2.6.24.

Top of Page