@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 +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/library-pull.sh +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/libvirt.sh +4 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/swap.sh +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/orbit/revision +1 -1
package/package.json
CHANGED
package/server/dist/builtin-plugins/orbit/dist/assets/orbit/recipes/server-linux/library-pull.sh
CHANGED
|
@@ -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'
|
|
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'
|
|
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"
|
|
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"
|
|
49
|
-
|
|
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
|
|
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
|
-
|
|
1
|
+
d0dacf237792be8cccb707e56693ae7a49b371f1
|