Skip to content

Commit 45cebf9

Browse files
committed
feat: Reduce the installer dependencies
1 parent 4ffbb45 commit 45cebf9

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

docs/1-SingleScript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ journalctl -u phoenixd -f
125125
## Requirements
126126

127127
- **Operating System**: Linux (x64)
128-
- **Dependencies**: `wget`, `gpg`, `unzip`, `sha256sum`
128+
- **Dependencies**: `curl`, `unzip`, `sha256sum`
129129
- **Network**: Internet connection for downloads
130130
- **Permissions**: Write access to installation directory, sudo for systemd service
131131

i18n/es/docusaurus-plugin-content-docs/current/1-SingleScript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ journalctl -u phoenixd -f
125125
## Requisitos
126126

127127
- **Sistema Operativo**: Linux (x64)
128-
- **Dependencias**: `wget`, `gpg`, `unzip`, `sha256sum`
128+
- **Dependencias**: `curl`, `unzip`, `sha256sum`
129129
- **Red**: Conexión a internet para las descargas.
130130
- **Permisos**: Acceso de escritura al directorio de instalación, sudo para el servicio de systemd.
131131

scripts/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ sudo mkdir -p $INSTALL_DIR
9696

9797
# Download and extract phoenixd
9898
echo "Downloading phoenixd..."
99-
if ! wget -q "$PHOENIXD_ZIP"; then
99+
if ! curl -s -O "$PHOENIXD_ZIP"; then
100100
echo "❌ Failed to download phoenixd from ${PHOENIXD_ZIP}" >&2
101101
exit 1
102102
fi
103103

104104
if [[ ! -f "verify.sh" ]]; then
105105
echo "Downloading the verification script..."
106-
if ! wget -q "$VERIFIER_URL"; then
106+
if ! curl -s -O "$VERIFIER_URL"; then
107107
echo "❌ Failed to download the verification script." >&2
108108
exit 1
109109
fi

scripts/verify.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,15 @@ verify_package() {
4141
fi
4242

4343
echo "🔐 Starting package verification..."
44+
45+
if ! command -v gpg &> /dev/null
46+
then
47+
echo "⚠️ gpg is not installed. Skipping package verification." >&2
48+
return 0
49+
fi
4450

4551
# Download and import PGP key
46-
if ! wget -q "$ACINQ_PGP_KEY" 2>/dev/null; then
52+
if ! curl -s -O "$ACINQ_PGP_KEY" 2>/dev/null; then
4753
echo "❌ Failed to download PGP key." >&2
4854
return 1
4955
fi
@@ -54,7 +60,7 @@ verify_package() {
5460
fi
5561

5662
# Download and verify signature
57-
if ! wget -q "$PHOENIXD_SIG" 2>/dev/null; then
63+
if ! curl -s -O "$PHOENIXD_SIG" 2>/dev/null; then
5864
echo "❌ Failed to download signature file." >&2
5965
return 1
6066
fi

0 commit comments

Comments
 (0)