Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initmenu overwrites config files & typo #27

Open
zlinc opened this issue Aug 11, 2016 · 1 comment
Open

initmenu overwrites config files & typo #27

zlinc opened this issue Aug 11, 2016 · 1 comment

Comments

@zlinc
Copy link

zlinc commented Aug 11, 2016

initmenu creates the wrong file on line 45:
sudo cp /etc/systemd/system.conf /etc/systemd/system.conf.d/10-logind.conf && \

Should be:
sudo cp /etc/systemd/system.conf /etc/systemd/system.conf.d/10-system.conf && \

Also for me it overwrites the file if it exists? perhaps it could be:

system.conf)
 if [ -f /etc/systemd/system.conf.d/10-system.conf ]
        then sudo $TEXTEDITOR /etc/systemd/system.conf.d/10-system.conf
    else
        sudo mkdir -p /etc/systemd/system.conf.d/ && \
        sudo cp /etc/systemd/system.conf /etc/systemd/system.conf.d/10-system.conf && \
        sudo $TEXTEDITOR /etc/systemd/system.conf.d/10-system.conf
    fi
break
;; 
@Chrysostomus
Copy link
Owner

Thanks for the report. I fixed creation of wrong file.

It's going to be a while until I have time to fix overwriting issue. If you have time, would you mind fixing it and sending a pull request so we can have the fix earlier? The proposed solution seems legit, and is more legible than current version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants