vinaigrette/init.sh

58 lines
2 KiB
Bash
Raw Normal View History

2017-08-30 05:30:18 +02:00
2017-08-30 14:03:09 +02:00
apt-get install nginx pbuilder reprepro rebuildd gawk sendxmpp -y
2017-09-18 22:39:24 +02:00
apt-get install qemu-system-arm debootstrap cdebootstrap qemu-user-static -y
2017-09-01 02:06:07 +02:00
apt-get install python-virtualenv python3-pip -y
2017-08-30 05:30:18 +02:00
# Fix the damn pbuilder-satistydepends (aptitude causes segfault on ARM)
cd /usr/lib/pbuilder
rm pbuilder-satisfydepends
ln -s pbuilder-satisfydepends-apt pbuilder-satisfydepends
2017-08-30 05:51:28 +02:00
VINAIGRETTE_HOME="/home/vinaigrette"
2017-08-30 05:30:18 +02:00
2017-08-30 05:51:28 +02:00
cd $VINAIGRETTE_HOME
source config/config
gpg --import config/keys/$DEBSIGN_KEYID.key
gpg --import config/keys/$DEBSIGN_KEYID.pub
cd gitrepos/
2017-08-29 17:17:25 +02:00
git clone https://github.com/yunohost/yunohost
git clone https://github.com/yunohost/yunohost-admin
git clone https://github.com/yunohost/ssowat SSOwat
2017-08-29 17:17:25 +02:00
git clone https://github.com/yunohost/moulinette
2017-09-17 22:03:03 +02:00
git clone https://github.com/yunohost/metronome
git clone https://github.com/vstakhov/rspamd
2017-08-29 17:17:25 +02:00
cd yunohost
2017-09-01 02:06:07 +02:00
git checkout stretch && git symbolic-ref refs/heads/stretch-unstable refs/heads/stretch
cd ..
2017-08-29 17:17:25 +02:00
mkdir -p /var/www/repo/debian/conf/
2017-08-30 14:03:09 +02:00
ln -s $VINAIGRETTE_HOME/config/distributions /var/www/repo/debian/conf/distributions
2017-08-30 05:30:18 +02:00
2017-08-30 14:03:09 +02:00
rm /etc/rebuildd/rebuilddrc
ln -s $VINAIGRETTE_HOME/config/rebuildd.conf /etc/rebuildd/rebuilddrc
2017-09-18 22:39:24 +02:00
rm /etc/default/rebuildd
2017-09-13 11:45:59 +02:00
ln -s $VINAIGRETTE_HOME/config/rebuildd.default /etc/default/rebuildd
2017-08-30 05:30:18 +02:00
2017-08-31 00:35:22 +02:00
ln -s $VINAIGRETTE_HOME/images /var/cache/pbuilder/images
2017-08-30 14:03:09 +02:00
ln -s /var/cache/pbuilder/result $PBUILDER_RESULTS
2017-09-01 17:34:59 +02:00
2017-09-04 19:12:59 +02:00
rm -f /etc/pbuilderrc
2017-09-01 17:34:59 +02:00
ln -s $PBUILDER_CONF/pbuilder.conf /etc/pbuilderrc
cp $VINAIGRETTE_HOME/config/nginx.conf /etc/nginx/sites-enabled/repo.conf
2017-08-30 05:30:18 +02:00
2017-08-30 14:03:09 +02:00
cat $VINAIGRETTE_HOME/config/keys/$DEBSIGN_KEYID.pub | apt-key add
cat $VINAIGRETTE_HOME/config/sources.list > /etc/apt/sources.list.d/vinaigrette.list
2017-08-30 05:30:18 +02:00
2017-08-31 19:55:09 +02:00
sed -i "s/__REPO_URL__/$REPO_URL/g" /etc/nginx/sites-enabled/repo.conf
sed -i "s/__REPO_URL__/$REPO_URL/g" /etc/apt/sources.list.d/vinaigrette.list
echo "deb https://deb.nodesource.com/node_4.x stretch main" >> /etc/apt/sources.list
2017-08-30 05:30:18 +02:00
echo "127.0.0.1 $REPO_URL" >> /etc/hosts
service nginx reload
2017-08-29 17:17:25 +02:00
2017-08-30 05:30:18 +02:00
rebuildd init