Skip to content

Commit

Permalink
Improved packaging
Browse files Browse the repository at this point in the history
Change-Id: I78a14c3021e4944eb14669a7abfe18f3a82726d0
  • Loading branch information
vmarkovtsev committed Sep 3, 2015
1 parent 77c4d4b commit 8b20ff4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
5 changes: 4 additions & 1 deletion debian/postinst
@@ -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
19 changes: 19 additions & 0 deletions deploy/ubuntu.sh
@@ -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

0 comments on commit 8b20ff4

Please sign in to comment.