until and if/then functions in %post

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

 



I wrote script asking for a new root password in %post. I am using until and if/then functions. However the %post section never starts up when it is the %post sections turn. It just hangs.

 

The script starts as follows:

 

PASSWORD="&*UY^&^YI"

PASSWORD_CHECK=1

 

until [ "$PASSWORD" = "$PASSWORD_CHECK" ]

     do

if [ $PASSWORD = "&*UY^&^YI" ] ; then

 

        /usr/bin/dialog --title "Enter root (Administrator) Password" --backtitle "…….

 

Any ideas?

 

Thanks

 

AR


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux