sm-grimoire AT lists.ibiblio.org
Subject: Discussion of Spells and Grimoire items
List archive
- 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:
> > I'm writing a spell that adds a line to httpd.conf. Now suppose that
> > there are two spells, ploni and elmoni, which both add lines to
> > httpd.conf. Neither depends on the other. You cast ploni, then cast
> > elmoni, then dispel ploni. What happens? What should happen?
> >
> > phma
>
> For this, perhaps have the spell take a before and after "shot"
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&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
>
>
>
>
-
[SM-Grimoire] Spells that edit httpd.conf,
Pierre Abbat, 01/10/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Eric Sandall, 01/10/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, Pierre Abbat, 01/10/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, Sergey A. Lipnevich, 01/10/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, Mads Laursen, 01/10/2003
- <Possible follow-up(s)>
- Re: [SM-Grimoire] Spells that edit httpd.conf, Dufflebunk, 01/10/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Dufflebunk, 01/10/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Pierre Abbat, 01/12/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Dufflebunk, 01/12/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Eric Womack, 01/12/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, M.L., 01/13/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Eric Womack, 01/12/2003
- Re: [SM-Grimoire] Spells that edit httpd.conf, Sergey A. Lipnevich, 01/13/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Dufflebunk, 01/12/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Pierre Abbat, 01/12/2003
-
Re: [SM-Grimoire] Spells that edit httpd.conf,
Eric Sandall, 01/10/2003
Archive powered by MHonArc 2.6.24.