Skip to content

Commit

Permalink
Merge pull request #2 from erkanisik1/main
Browse files Browse the repository at this point in the history
Update postinstall.py
  • Loading branch information
erkanisik1 authored May 20, 2022
2 parents b7a52fa + 8a7868f commit a423314
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions yali/postinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ def initbaselayout():
yali.util.cp("usr/share/baselayout/ld.so.conf", "etc/ld.so.conf")

# /etc/passwd, /etc/shadow, /etc/group
yali.util.cp("usr/share/baselayout/passwd", "etc/passwd")
yali.util.cp("usr/share/baselayout/shadow", "etc/shadow")
os.chmod(os.path.join(ctx.consts.target_dir, "etc/shadow"), 0o600)
yali.util.cp("usr/share/baselayout/group", "etc/group")

# aşağıdaki 4 satır 20-05-2022 tarihinde kapatıldı
#yali.util.cp("usr/share/baselayout/passwd", "etc/passwd")
#yali.util.cp("usr/share/baselayout/shadow", "etc/shadow")
#os.chmod(os.path.join(ctx.consts.target_dir, "etc/shadow"), 0o600)
#yali.util.cp("usr/share/baselayout/group", "etc/group")

# create empty log file
yali.util.touch("var/log/lastlog")
Expand Down

0 comments on commit a423314

Please sign in to comment.