forked from microsoft/Build-OMS-Agent-for-Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline-extension-packaging-restore.sh
27 lines (21 loc) · 1.06 KB
/
pipeline-extension-packaging-restore.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
26
27
#!/bin/bash
echo "***************************************************************************"
echo "***************************************************************************"
echo "***************************************************************************"
echo "Start of Restore "
echo "***************************************************************************"
echo "***************************************************************************"
echo "***************************************************************************"
SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "ls -la $SOURCE_DIR"
ls -la $SOURCE_DIR
sudo apt install -y tree
echo Install Powershell package
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo add-apt-repository universe
sudo apt-get install -y powershell
pwsh --version
echo Cloning azure-linux-extensions ...
git clone --recursive https://github.com/Azure/azure-linux-extensions.git $SOURCE_DIR/azure-linux-extensions