-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·25 lines (18 loc) · 1.04 KB
/
install.sh
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
#!/bin/bash
echo "📦 Installing Torizon Emulator Manager ..."
echo "🔑 we need sudo permissions"
sudo echo "🔓 sudo permissions granted"
wget -O /tmp/torizon-emulator-manager \
https://github.com/commontorizon/torizonEmulatorManager/releases/latest/download/torizon-emulator-manager
wget -O /tmp/docker-compose.yml \
https://github.com/commontorizon/torizonEmulatorManager/releases/latest/download/docker-compose.yml
echo "📦 Moving Assets ..."
sudo mkdir -p /opt/torizon-emulator-manager
sudo mv -f /tmp/torizon-emulator-manager /opt/torizon-emulator-manager
sudo mv -f /tmp/docker-compose.yml /opt/torizon-emulator-manager
sudo chmod +x /opt/torizon-emulator-manager/torizon-emulator-manager
sudo ln -sf /opt/torizon-emulator-manager/torizon-emulator-manager /usr/bin/torizon-emulator-manager
echo "🛜 Pre-downloading the image ..."
docker compose -f /opt/torizon-emulator-manager/docker-compose.yml pull
echo "🎉 Torizon Emulator Manager installed successfully!"
echo "Now run torizon-emulator-manager command to start the application."