pandora_vagrant/install.sh

19 lines
663 B
Bash
Raw Normal View History

2015-05-02 10:11:05 +00:00
#!/bin/bash
if [ -x /srv/pandora ]; then
2017-03-26 18:26:22 +00:00
sudo -H -u pandora /srv/pandora/update.py dev
2015-05-02 10:11:05 +00:00
else
2017-03-26 18:26:22 +00:00
export DEBIAN_FRONTEND=noninteractive
groupadd -g 1001 pandora
useradd -c 'pan.do/ra' -g pandora -m -u 1001 pandora
echo "pandora:pandora" | chpasswd
2015-05-02 10:11:05 +00:00
apt-get update -qq
apt-get install -y curl >/dev/null 2>&1
2017-03-26 18:26:22 +00:00
localectl set-locale LANG=C.UTF-8
2015-11-15 16:56:12 +00:00
curl -sL https://pan.do/ra-install > /srv/pandora_install.sh
chmod +x /srv/pandora_install.sh
2015-05-02 10:11:05 +00:00
echo "Installing pan.do/ra..."
echo "logging installation progress into pandora_install.log"
2015-11-15 16:56:12 +00:00
/srv/pandora_install.sh >/srv/pandora_install.log 2>&1
rm /srv/pandora_install.sh
2015-05-02 10:11:05 +00:00
fi