mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Restore historical behaviour of only executing chflags on files that exist.
This eliminates cosmetic errors of the form "chflags: ...: No such file or directory" during an installworld to an empty destination.
This commit is contained in:
parent
2db9a1171c
commit
11666ce50a
1 changed files with 2 additions and 0 deletions
|
|
@ -38,7 +38,9 @@ MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
|
|||
|
||||
beforeinstall:
|
||||
.for i in chpass chfn chsh ypchpass ypchfn ypchsh
|
||||
.if exists(${DESTDIR}${BINDIR}/$i)
|
||||
-chflags noschg ${DESTDIR}${BINDIR}/$i
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
.if !defined(NO_FSCHG)
|
||||
|
|
|
|||
Loading…
Reference in a new issue