-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added missing install script 'install-ctrlx-datalayer.sh'
- Loading branch information
1 parent
c82a0a2
commit 053b689
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
|
||
DIR=$1 | ||
if [ ! -z "$DIR" ]; then | ||
cd $DIR | ||
fi | ||
|
||
sudo apt-get install -y dpkg-dev | ||
|
||
# Install debian package locally so that 'apt-get install' will find it (for building sample project snaps) | ||
dpkg-scanpackages -m . >Packages | ||
|
||
# Add package to sources list | ||
full_path=$(pwd) | ||
echo "deb [trusted=yes] file:${full_path} ./" | sudo tee /etc/apt/sources.list.d/ctrlx-automation.list | ||
|
||
sudo apt-get update | ||
|
||
# Install newest ctrlx-datalayer package | ||
sudo apt-get install ctrlx-datalayer -y |