-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·57 lines (46 loc) · 1.34 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·57 lines (46 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Argus installer
# Usage: curl -fsSL https://raw.githubusercontent.com/user/argus/main/install.sh | bash
set -e
echo "Installing Argus..."
echo ""
# --- Check Node.js >= 18 ---
if ! command -v node >/dev/null 2>&1; then
echo "Error: Node.js is not installed."
echo "Please install Node.js 18 or later from https://nodejs.org"
exit 1
fi
NODE_VERSION=$(node --version | sed 's/v//' | cut -d. -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo "Error: Node.js 18 or later is required (found: $(node --version))"
echo "Please upgrade Node.js from https://nodejs.org"
exit 1
fi
echo "Node.js version: $(node --version)"
# --- Check npm ---
if ! command -v npm >/dev/null 2>&1; then
echo "Error: npm is not available."
echo "Please install npm or use a Node.js version that includes it."
exit 1
fi
echo "npm version: $(npm --version)"
echo ""
# --- Install argus ---
echo "Installing argus globally..."
npm install -g argus
echo ""
echo "Registering Argus as a system service..."
argus install
echo ""
echo "Starting Argus..."
argus start
echo ""
echo "Argus installed and running!"
echo ""
echo "Commands:"
echo " argus status - Check monitoring status"
echo " argus logs -f - Follow live logs"
echo " argus watch - Open dashboard"
echo " argus report - Daily report"
echo " argus tcc - Check AI app permissions"
echo ""