File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ ensure_line "nav/NAV_Sub_CA.crt" "/etc/ca-certificates.conf"
19
19
update-ca-certificates
20
20
21
21
# Assert just _one_ logged-in user
22
- user_accounts=$( loginctl list-users --output json | jq ' [.[] | select(.uid >= 1000)]' )
23
- if echo " $user_accounts " | jq -e ' length != 1' > /dev/null; then
22
+ user_accounts=$( loginctl list-users -j | jq ' [.[] | select(.uid >= 1000)]' )
23
+ if echo " $user_accounts " | jq -e ' length != 1' > /dev/null; then
24
24
printf " \nMore than 1 user account logged in! naisdevice only permits _one_ user account!\n"
25
25
exit 1
26
26
fi
27
27
28
28
# Assert only whitelisted service accounts "logged in" (if logged in at all)
29
- service_accounts=$( loginctl list-users --output json | jq -e ' [.[] | select(.uid < 1000)]' )
30
- if echo " $service_accounts " | jq -e ' length > 0' > /dev/null; then
29
+ service_accounts=$( loginctl list-users -j | jq -e ' [.[] | select(.uid < 1000)]' )
30
+ if echo " $service_accounts " | jq -e ' length > 0' > /dev/null; then
31
31
is_not_whitelisted=0
32
32
33
33
whitelisted_service_accounts=" gdm,"
You can’t perform that action at this time.
0 commit comments