Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit 6fa7986

Browse files
committed
update install scripts
1 parent 75ae28f commit 6fa7986

File tree

2 files changed

+2
-72
lines changed

2 files changed

+2
-72
lines changed

install.ps1

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -23,40 +23,4 @@ if (npm install -g symmetry-cli) {
2323
exit 1
2424
}
2525

26-
$config_dir = "$env:USERPROFILE\.config\symmetry"
27-
$provider_yaml = "$config_dir\provider.yaml"
28-
$user_secret = (Get-Random).ToString()
29-
30-
New-Item -ItemType Directory -Force -Path $config_dir | Out-Null
31-
32-
33-
if (!(Test-Path $provider_yaml)) {
34-
Print-Color $YELLOW "Creating provider.yaml file..."
35-
@"
36-
# Symmetry Configuration
37-
apiHostname: localhost
38-
apiKey:
39-
apiChatPath: /v1/chat/completions
40-
apiPort: 11434
41-
apiProtocol: http
42-
apiProvider: ollama
43-
dataCollectionEnabled: true
44-
maxConnections: 10
45-
modelName: llama3.1:latest
46-
name: $env:USERNAME
47-
path: $config_dir
48-
public: true
49-
systemMessage:
50-
userSecret: $user_secret
51-
serverKey: 4b4a9cc325d134dee6679e9407420023531fd7e96c563f6c5d00fd5549b77435
52-
"@ | Set-Content $provider_yaml
53-
Print-Color $GREEN "provider.yaml created successfully at $provider_yaml"
54-
} else {
55-
Print-Color $YELLOW "provider.yaml already exists at $provider_yaml"
56-
}
57-
58-
Print-Color $GREEN "Installation complete! You can now run 'symmetry-cli' to start your node."
59-
Print-Color $YELLOW "Please edit $provider_yaml to customize your provider settings, especially:"
60-
Print-Color $YELLOW " - apiKey: Add your API key if required"
61-
Print-Color $YELLOW " - name: Currently set to your system username, change if needed"
62-
Print-Color $YELLOW " - public: Set to true by default, change to false if you don't want to be publicly accessible"
26+
Print-Color $GREEN "Installation complete! You can now run 'symmetry-cli start' to start your node."

install.sh

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,4 @@ else
2525
exit 1
2626
fi
2727

28-
config_dir="$HOME/.config/symmetry"
29-
provider_yaml="$config_dir/provider.yaml"
30-
user_secret=$(openssl rand -hex 16)
31-
32-
mkdir -p "$config_dir"
33-
34-
35-
if [ ! -f "$provider_yaml" ]; then
36-
print_color "$YELLOW" "Creating provider.yaml file..."
37-
cat << EOF > "$provider_yaml"
38-
# Symmetry Configuration
39-
apiHostname: localhost
40-
apiKey:
41-
apiChatPath: /v1/chat/completions
42-
apiPort: 11434
43-
apiProtocol: http
44-
apiProvider: ollama
45-
dataCollectionEnabled: true
46-
maxConnections: 10
47-
modelName: llama3.1:latest
48-
name: $(whoami)
49-
path: $config_dir
50-
public: true
51-
systemMessage:
52-
serverKey: 4b4a9cc325d134dee6679e9407420023531fd7e96c563f6c5d00fd5549b77435
53-
userSecret: $user_secret
54-
55-
EOF
56-
print_color "$GREEN" "provider.yaml created successfully at $provider_yaml"
57-
else
58-
print_color "$YELLOW" "provider.yaml already exists at $provider_yaml"
59-
fi
60-
61-
print_color "$GREEN" "Installation complete! You can now run 'symmetry-cli' to start your node."
62-
print_color "$YELLOW" "Please edit $provider_yaml to customize your provider settings:"
28+
print_color "$GREEN" "Installation complete! You can now run 'symmetry-cli start' to start your node."

0 commit comments

Comments
 (0)