bug-cfengine
[Top][All Lists]
Advanced

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

editfiles:UnCommentLinesContaining doesn't work as expected ...


From: Eric Berggren
Subject: editfiles:UnCommentLinesContaining doesn't work as expected ...
Date: Mon, 22 Jan 2001 16:02:09 -0800

  ... or is it a feature. i have the following editfiles block :

    solaris::
        { /etc/default/login
                SetCommentStart '#'
                SetCommentEnd ''
                UnCommentLinesContaining "CONSOLE="
                ResetSearch 1
                UnCommentLinesContaining "UMASK="
                ResetSearch 1
                UnCommentLinesContaining "SUPATH="
                ResetSearch 1
                UnCommentLinesContaining "TIMEZONE="
        }

  against the file /etc/default/login, which contains among other things :


        # Set the TZ environment variable of the shell.
        #
        #TIMEZONE=EST5EDT

        # If CONSOLE is set, root can only login on that device.
        # Comment this line out to allow remote login by root.
        #
        #CONSOLE=/dev/console

        # SUPATH sets the initial shell PATH variable for root
        #
        #SUPATH=/usr/sbin:/usr/bin

        # UMASK sets the initial shell file creation mode mask.  See umask(1).
        #
        #UMASK=022


  but it results in :


        # Set the TZ environment variable of the shell.
        #
        =EST5EDT

        # If CONSOLE is set, root can only login on that device.
        # Comment this line out to allow remote login by root.
        #
        =/dev/console

        # SUPATH sets the initial shell PATH variable for root
        #
        =/usr/sbin:/usr/bin

        # UMASK sets the initial shell file creation mode mask.  See umask(1).
        #
        =022

rather than removing the initial '#' mark.


  Am I doing something wrong here ?

        # cfengine -v
        Reference time set to Mon Jan 22 16:00:08 2001
        
        GNU Configuration Engine - 
        1.6.1
        .........


thanks,
-eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]