Fix ssh config permission after install
This commit is contained in:
parent
451af7e67f
commit
6e45efb2af
8
setup
8
setup
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""Initialize your dotfiles setup.
|
||||
|
||||
|
@ -16,6 +16,7 @@ import os.path
|
|||
import shutil
|
||||
import re
|
||||
import subprocess
|
||||
import stat
|
||||
|
||||
# Install? (deletes existing files in $HOME).
|
||||
install = "--install" in sys.argv
|
||||
|
@ -86,6 +87,11 @@ def crawl(folder):
|
|||
print("Link: %s -> %s" % (home, target))
|
||||
os.symlink(target, home)
|
||||
|
||||
# Fix permissions.
|
||||
if path == ".ssh/config":
|
||||
print("chmod 600 .ssh/config")
|
||||
os.chmod(home, stat.S_IRUSR | stat.S_IWUSR)
|
||||
|
||||
crawl(source)
|
||||
|
||||
# vim:expandtab
|
||||
|
|
Loading…
Reference in New Issue
Block a user