[wplug] pushing cups client config with nis
John Harrold
jmh17 at pitt.edu
Mon May 19 08:54:03 EDT 2003
howdy.
i want to push the file /etc/cups/client.conf with nis, since i'm using nis for
everything else. i had to do something similar to push the auto mount stuff in
/etc, but it doesnt seem to work with what i'm doing. this is on redhat 9
(rh9), using a Makefile which i've modified along the way from redhat 6.2
at the top of the Makefile i add this:
CUPSCLIENT = $(YPSRCDIR)/cups/client.conf
then to the 'all' portion i added:
all: .... client.conf \
then below the line that says: "DON'T EDIT ANYTHING BELOW IF YOU DON'T KNOW WHAT
YOU ARE DOING !!!", i added the following:
client.conf: $(CUPSCLIENT) $(YPDIR)/Makefile
@echo "Updating $@..."
- at sed -e "/^#/d" -e s/#.*$$// $(CUPSCLIENT) | $(DBLOAD) \
-i $(CUPSCLIENT) -o $(YPMAPDIR)/$@ - $@
-@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@
when i run make it doesnt choke or anything. afterwards i restart ypserv on the
server and ypbind on the client. then when i try to run ypcat
$ ypcat client.conf
it returns nothing. would anyone care to comment on this? i honestly dont know
what that last chunk of stuff i added does, but it worked when i added the
automount stuff.
--
--------------------------------------------------------------------------
| /"\
john harrold | \ / ASCII ribbon campaign
jmh at member.fsf.org | X against HTML mail
the most useful idiot | / \
--------------------------------------------------------------------------
"Of course the people don't want war. But after all, it's the leaders of
the country who determine the policy, and it's always a simple matter to
drag the people along whether it's a democracy, a fascist dictatorship,
or a parliament, or a communist dictatorship. Voice or no voice, the
people can always be brought to the bidding of the leaders. That is
easy. All you have to do is tell them they are being attacked, and
denounce the pacifists for lack of patriotism, and exposing the country
to greater danger."
-- Herman Goering
as related to Gustave Gilbert at the Nuremberg trials,
--------------------------------------------------------------------------
gpg --keyserver keys.indymedia.org --recv-key F65A739E
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20030519/fd909309/attachment-0001.bin
More information about the wplug
mailing list