pandora_vagrant/install.sh

14 lines
518 B
Bash
Raw Normal View History

2015-05-02 10:11:05 +00:00
#!/bin/bash
if [ -x /srv/pandora ]; then
sudo -H -u vagrant /srv/pandora/update.py dev
else
apt-get update -qq
apt-get install -y curl >/dev/null 2>&1
curl https://wiki.0x2620.org/browser/pandora/vm/pandora_install.sh?format=txt > /vagrant/pandora_install.sh 2>/dev/null
echo "Installing pan.do/ra..."
echo "logging installation progress into pandora_install.log"
export PUSER=vagrant
/vagrant/pandora_install.sh >/vagrant/pandora_install.log 2>&1
rm /vagrant/pandora_install.sh
fi