fix: remove network-online dependency from abra installation service
This commit is contained in:
@@ -493,8 +493,7 @@ isoConfig
|
|||||||
systemd.services.workshop-abra-install = {
|
systemd.services.workshop-abra-install = {
|
||||||
description = "Install abra CLI system-wide with retry logic and proper verification";
|
description = "Install abra CLI system-wide with retry logic and proper verification";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network-online.target" ];
|
after = [ "workshop-system-setup.service" ];
|
||||||
wants = [ "network-online.target" ];
|
|
||||||
path = with pkgs; [
|
path = with pkgs; [
|
||||||
bash
|
bash
|
||||||
wget
|
wget
|
||||||
@@ -521,13 +520,13 @@ isoConfig
|
|||||||
|
|
||||||
# Wait for actual internet connectivity
|
# Wait for actual internet connectivity
|
||||||
echo "🌐 Waiting for internet connectivity..."
|
echo "🌐 Waiting for internet connectivity..."
|
||||||
for i in {1..30}; do
|
for i in {1..300}; do
|
||||||
if curl -s --max-time 5 https://abra.coopcloud.tech >/dev/null 2>&1; then
|
if curl -s --max-time 5 https://abra.coopcloud.tech >/dev/null 2>&1; then
|
||||||
echo "✅ Internet connectivity confirmed"
|
echo "✅ Internet connectivity confirmed"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [ $i -eq 30 ]; then
|
if [ $i -eq 300 ]; then
|
||||||
echo "❌ No internet connectivity after 60 seconds"
|
echo "❌ No internet connectivity after 10 minutes"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|||||||
Reference in New Issue
Block a user