Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I78a14c3021e4944eb14669a7abfe18f3a82726d0
- Loading branch information
1 parent
77c4d4b
commit 8b20ff4
Showing
2 changed files
with
23 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/sh -e | ||
|
||
echo "pip3 install -q -r /usr/share/veles/requirements.txt" | ||
echo "This will take some time..." | ||
pip3 install -q -r /usr/share/veles/requirements.txt | ||
VELES_ALLOW_ROOT= generate_veles_frontend | ||
VELES_ALLOW_ROOT= generate_veles_frontend | ||
chown -R $SUDO_USER $HOME/.veles || true |
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,19 @@ | ||
#!/bin/sh -e | ||
|
||
if [ ! -e /etc/debian_version ]; then | ||
echo "Only Debian-based distros are supported by this script." | ||
fi | ||
|
||
uver=$(lsb_release -cs) | ||
|
||
if [ $(id -u) != 0 ]; then | ||
echo "Requesting sudo..." | ||
sudo echo "Thanks" | ||
fi | ||
|
||
wget -O - https://velesnet.ml/apt/velesnet.ml.gpg.key | sudo apt-key add - | ||
if ! grep -q "deb [arch=amd64] https://velesnet.ml/apt $uver main" /etc/apt/sources.list; then | ||
echo "deb [arch=amd64] https://velesnet.ml/apt $uver main" | sudo tee -a /etc/apt/sources.list | ||
fi | ||
sudo apt-get update | ||
sudo apt-get install python3-veles |