[opensuse-autoinstall] yast2 <module> commandline with no tty
Hi All, I'm trying to run yast2 for a specific module in an init-script, but yast2 complains about the lack of tty. Does anyone now how to get around this? One of the commands I'm trying to run is: yast2 ldap-server service verbose enable Any input appreciated. /Lars Stavholm -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
You need autoyast to do the job. Basic logic. # Define terminal export TERM=vt100 # Otherwise YAST would complain later # Get the required configuration xml file cd /tmp/ && wget --no-clobber http://.../ldap.xml # Run YAST (Autoyast) via screen screen -D -m yast /usr/share/YaST2/clients/ayast_setup.ycp setup filename=/tmp/ldap.xml In case something goes wrong you can attach via the screen command to the screen session. Hth Hajo -----Original Message----- From: Lars Stavholm [mailto:stava@telcotec.se] Sent: Sunday, October 17, 2010 5:57 PM To: opensuse-autoinstall@opensuse.org Subject: [opensuse-autoinstall] yast2 <module> commandline with no tty Hi All, I'm trying to run yast2 for a specific module in an init-script, but yast2 complains about the lack of tty. Does anyone now how to get around this? One of the commands I'm trying to run is: yast2 ldap-server service verbose enable Any input appreciated. /Lars Stavholm -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
Hans-Joachim Ehlers
-
Lars Stavholm