mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
don't check knownSha256 for authorized_keys files
This commit is contained in:
parent
ecb5840f6b
commit
ccaa942888
1 changed files with 6 additions and 10 deletions
|
@ -57,6 +57,10 @@ in
|
|||
if [ ! -e "$d" ]; then
|
||||
mkdir -p "$d"
|
||||
fi
|
||||
if [ -e "$f".copy ]; then
|
||||
cp "$f" "$l"
|
||||
continue
|
||||
fi
|
||||
if [ -e "$l" ]; then
|
||||
if [ "$(readlink "$l")" != "$f" ]; then
|
||||
if ! grep -q /etc/static "$l"; then
|
||||
|
@ -65,11 +69,7 @@ in
|
|||
for h in ''${etcSha256Hashes["$l"]}; do
|
||||
if [ "$o" = "$h" ]; then
|
||||
mv "$l" "$l.orig"
|
||||
if [ -e "$f".copy ]; then
|
||||
cp "$f" "$l"
|
||||
else
|
||||
ln -s "$f" "$l"
|
||||
fi
|
||||
ln -s "$f" "$l"
|
||||
break
|
||||
else
|
||||
h=
|
||||
|
@ -83,11 +83,7 @@ in
|
|||
fi
|
||||
fi
|
||||
else
|
||||
if [ -e "$f".copy ]; then
|
||||
cp "$f" "$l"
|
||||
else
|
||||
ln -s "$f" "$l"
|
||||
fi
|
||||
ln -s "$f" "$l"
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue