[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Preserve $HOME in %post?



Just escape out the $

cat <<EOF >>/home/test/.rpmmacros
%_topdir %(echo \$HOME)/redhat
EOF
chown test.test /home/test/.rpmmacros 

-----Original Message-----
From: kickstart-list-bounces redhat com
[mailto:kickstart-list-bounces redhat com] On Behalf Of Patrick
Sent: Wednesday, March 08, 2006 9:00 AM
To: Discussion list about Kickstart
Subject: Preserve $HOME in %post?

Hi all,

I noticed that $HOME becomes /tmp when I use it in the %post section of
my ks file. Is there a way to preserve "$HOME"? What happens now is
something like this:

cat <<EOF >>/home/test/.rpmmacros
%_topdir %(echo $HOME)/redhat
EOF
chown test.test /home/test/.rpmmacros

After the install & reboot I see:
$ cat /home/test/.rpmmacros
%_topdir %(echo /tmp)/redhat

And I would like it to say:
%_topdir %(echo $HOME)/redhat

Thanks for any suggestions.

Regards,
Patrick

_______________________________________________
Kickstart-list mailing list
Kickstart-list redhat com
https://www.redhat.com/mailman/listinfo/kickstart-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]