@halcyonlabs/app 0.47.0-halcyon.78 → 0.47.0-halcyon.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyonlabs/app",
3
- "version": "0.47.0-halcyon.78",
3
+ "version": "0.47.0-halcyon.79",
4
4
  "description": "bb app launcher for npx",
5
5
  "keywords": [
6
6
  "bb",
@@ -65,5 +65,5 @@ WantedBy=multi-user.target libvirtd.service
65
65
  UNIT
66
66
  systemctl daemon-reload
67
67
  systemctl enable --now var-lib-orbit-shares.mount >/dev/null 2>&1
68
- findmnt -no OPTIONS /var/lib/orbit/shares | tr , '\n' | grep -qx ro || { echo "/var/lib/orbit/shares isn't mounted read-only" >&2; exit 1; }
68
+ grep -qx ro <<<"$(findmnt -no OPTIONS /var/lib/orbit/shares | tr , '\n')" || { echo "/var/lib/orbit/shares isn't mounted read-only" >&2; exit 1; }
69
69
  systemctl enable --now orbit-library-pull.timer >/dev/null
@@ -13,7 +13,7 @@ done
13
13
  if id bb >/dev/null 2>&1; then
14
14
  manager=$(systemctl show -p MainPID --value "user@$(id -u bb).service")
15
15
  libvirt=$(getent group libvirt | cut -d: -f3)
16
- if [ "${manager:-0}" -gt 0 ] && ! sed -n 's/^Groups:\s*//p' "/proc/$manager/status" | tr -s ' \t' '\n' | grep -qx "$libvirt"; then
16
+ if [ "${manager:-0}" -gt 0 ] && ! grep -qx "$libvirt" <<<"$(sed -n 's/^Groups:\s*//p' "/proc/$manager/status" | tr -s ' \t' '\n')"; then
17
17
  echo "restarting bb's user manager so it takes the libvirt group"
18
18
  systemctl restart "user@$(id -u bb).service"
19
19
  fi
@@ -36,7 +36,7 @@ XML
36
36
  rm -f "$xml"
37
37
  fi
38
38
  virsh -q net-autostart "$NET"
39
- virsh -q net-info "$NET" | grep -q 'Active:.*yes' || virsh -q net-start "$NET"
39
+ grep -q 'Active:.*yes' <<<"$(virsh -q net-info "$NET")" || virsh -q net-start "$NET"
40
40
 
41
41
  POOL=orbit
42
42
  DIR=/var/lib/orbit/images
@@ -45,5 +45,5 @@ if ! virsh -q pool-info "$POOL" >/dev/null 2>&1; then
45
45
  virsh -q pool-define-as "$POOL" dir --target "$DIR"
46
46
  fi
47
47
  virsh -q pool-autostart "$POOL"
48
- virsh -q pool-info "$POOL" | grep -q 'State:.*running' || virsh -q pool-start "$POOL"
49
- virsh -q net-dumpxml "$NET" | grep -q "192.168.177.1" || { echo "the orbit network isn't 192.168.177.0/24" >&2; exit 1; }
48
+ grep -q 'State:.*running' <<<"$(virsh -q pool-info "$POOL")" || virsh -q pool-start "$POOL"
49
+ grep -q "192.168.177.1" <<<"$(virsh -q net-dumpxml "$NET")" || { echo "the orbit network isn't 192.168.177.0/24" >&2; exit 1; }
@@ -7,7 +7,7 @@ if [ ! -f "$file" ]; then
7
7
  chmod 600 "$file"
8
8
  mkswap "$file" >/dev/null
9
9
  fi
10
- swapon --show=NAME --noheadings | grep -qx "$file" || swapon "$file"
10
+ grep -qx "$file" <<<"$(swapon --show=NAME --noheadings)" || swapon "$file"
11
11
  grep -q "^$file " /etc/fstab || printf '%s none swap sw 0 0\n' "$file" >> /etc/fstab
12
12
  printf 'vm.swappiness=10\n' > /etc/sysctl.d/90-orbit-swap.conf
13
13
  sysctl -q -p /etc/sysctl.d/90-orbit-swap.conf
@@ -1 +1 @@
1
- f2b2c2b444e067d8b8febec392bb4a3b7d63ec1a
1
+ d0dacf237792be8cccb707e56693ae7a49b371f1