Update run.sh
Browse files
run.sh
CHANGED
|
@@ -45,16 +45,18 @@ start_qdrant() {
|
|
| 45 |
echo "Starting Qdrant server..."
|
| 46 |
|
| 47 |
# Ensure directories exist and have correct permissions
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
|
|
|
| 52 |
|
| 53 |
# Set correct permissions
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
# Create Qdrant config file
|
|
|
|
| 58 |
cat > /home/pn/.n8n/qdrant/config/config.yaml <<EOF
|
| 59 |
service:
|
| 60 |
host: 0.0.0.0
|
|
@@ -99,6 +101,7 @@ EOF
|
|
| 99 |
chmod 644 /home/pn/.n8n/qdrant/config/config.yaml
|
| 100 |
|
| 101 |
# Start Qdrant with the config file
|
|
|
|
| 102 |
qdrant --config-path /home/pn/.n8n/qdrant/config/config.yaml > /home/pn/.n8n/qdrant/logs/startup.log 2>&1 &
|
| 103 |
|
| 104 |
# Wait for Qdrant to start
|
|
|
|
| 45 |
echo "Starting Qdrant server..."
|
| 46 |
|
| 47 |
# Ensure directories exist and have correct permissions
|
| 48 |
+
echo "Create Qdrant folder"
|
| 49 |
+
mkdir -p /home/pn/.n8n/qdrant/storage
|
| 50 |
+
mkdir -p /home/pn/.n8n/qdrant/config
|
| 51 |
+
mkdir -p /home/pn/.n8n/qdrant/snapshots
|
| 52 |
+
mkdir -p /home/pn/.n8n/qdrant/logs
|
| 53 |
|
| 54 |
# Set correct permissions
|
| 55 |
+
chmod -R 755 /home/pn/.n8n/qdrant
|
| 56 |
+
chown -R pn:pn /home/pn/.n8n/qdrant
|
| 57 |
|
| 58 |
# Create Qdrant config file
|
| 59 |
+
echo "Create Qdrant config"
|
| 60 |
cat > /home/pn/.n8n/qdrant/config/config.yaml <<EOF
|
| 61 |
service:
|
| 62 |
host: 0.0.0.0
|
|
|
|
| 101 |
chmod 644 /home/pn/.n8n/qdrant/config/config.yaml
|
| 102 |
|
| 103 |
# Start Qdrant with the config file
|
| 104 |
+
echo "Start Qdrant..."
|
| 105 |
qdrant --config-path /home/pn/.n8n/qdrant/config/config.yaml > /home/pn/.n8n/qdrant/logs/startup.log 2>&1 &
|
| 106 |
|
| 107 |
# Wait for Qdrant to start
|