File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 61
61
62
62
cp /sys/devices/virtual/dmi/id/product_serial " ${config_dir} "
63
63
64
+ if [ -f " $config_dir /agent-config.json" ]; then
65
+ tmp=" $( mktemp) "
66
+ jq ' del(.CertRenewal)' " $config_dir /agent-config.json" > " $tmp "
67
+ mv " $tmp " " $config_dir /agent-config.json"
68
+ fi
69
+
70
+
64
71
chown -R " ${user} :" " ${config_dir} "
65
72
66
73
set +e
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ mkdir -p -m 0700 "${log_dir}"
13
13
14
14
chown -R " ${user} :" " ${config_dir} "
15
15
16
+ if [ -f " $config_dir /agent-config.json" ]; then
17
+ tmp=" $( mktemp) "
18
+ /Applications/naisdevice.app/Contents/MacOS/jq ' del(.CertRenewal)' " $config_dir /agent-config.json" > " $tmp "
19
+ mv " $tmp " " $config_dir /agent-config.json"
20
+ fi
21
+
16
22
cat << EOF > "$destination "
17
23
<?xml version="1.0" encoding="UTF-8"?>
18
24
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
You can’t perform that action at this time.
0 commit comments