-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathinstall-dev.sh
More file actions
executable file
·41 lines (32 loc) · 813 Bytes
/
install-dev.sh
File metadata and controls
executable file
·41 lines (32 loc) · 813 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
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Set parameters
ORG_ALIAS="streaming"
echo ""
echo "Installing Streaming Monitor DEV org ($ORG_ALIAS)"
echo ""
# Install script
echo "Cleaning previous scratch org..."
sf org delete scratch -p -o $ORG_ALIAS &> /dev/null
echo ""
echo "Creating scratch org..." && \
sf org create scratch -f config/project-scratch-def.json -a $ORG_ALIAS -d -y 30 && \
echo "" && \
echo "Pushing source..." && \
sf project deploy start && \
echo "" && \
echo "Assigning permission sets..." && \
sf org assign permset -n Streaming_Monitor && \
echo "" && \
echo "Opening org..." && \
sf org open -p lightning/n/Streaming_Monitor && \
echo ""
EXIT_CODE="$?"
echo ""
# Check exit code
echo ""
if [ "$EXIT_CODE" -eq 0 ]; then
echo "Installation completed."
else
echo "Installation failed."
fi
exit $EXIT_CODE