-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
30 lines (24 loc) · 979 Bytes
/
setup.sh
File metadata and controls
30 lines (24 loc) · 979 Bytes
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
set -e
echo "Setting up Voice-TimeLogger-Agent..."
# Create required directories
echo "Creating project directories..."
mkdir -p ./tmp/meeting_recordings ./credentials
# Set permissions
echo "Setting directory permissions..."
chmod -R 755 .
chmod -R 777 ./tmp
# Check if credentials file exists
if [ ! -f ./credentials/google-service-account.json ]; then
echo "WARNING: Google service account JSON not found in ./credentials/"
echo "You will need to add this file before the application can connect to Google Sheets"
fi
# Check if .env file exists
if [ ! -f .env ]; then
echo "No .env file found. Creating from example..."
cp .env.example .env 2>/dev/null || { echo "No .env.example found. Please create .env manually."; }
fi
echo "Setup complete!"
echo "Next steps:"
echo "1. Make sure your .env file has your API keys"
echo "2. Add Google service account JSON to ./credentials/google-service-account.json"
echo "3. Run 'docker-compose up -d' to start the service"