vinaigrette/init.sh

37 lines
1 KiB
Bash
Raw Normal View History

2017-08-30 05:30:18 +02:00
apt-get install nginx pbuilder reprepro rebuildd gawk -y
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
git clone https://github.com/yunohost/moulinette
mkdir -p /var/www/repo/debian/conf/
2017-08-30 05:30:18 +02:00
2017-08-30 05:51:28 +02:00
cd $VINAIGRETTE_HOME/
cp config/distributions /var/www/repo/debian/conf/
2017-08-29 17:17:25 +02:00
2017-08-30 05:54:05 +02:00
cp $VINAIGRETTE_HOME/config/rebuildd.conf /etc/rebuildd/rebuilddrc
2017-08-30 05:30:18 +02:00
2017-08-30 05:51:28 +02:00
cat $VINAIGRETTE_HOME/config/keys/$DEBSIGN_KEYID.pub | apt-key add
cat $VINAIGRETTE_HOME/config/sources.list >> /etc/apt/sources.list
2017-08-30 05:30:18 +02:00
2017-08-30 05:51:28 +02:00
ln -s $VINAIGRETTE_HOME/pbuilder/images /var/cache/pbuilder/images
ln -s /var/cache/pbuilder/result $VINAIGRETTE_HOME/pbuilder/result
2017-08-30 05:30:18 +02:00
echo "127.0.0.1 $REPO_URL" >> /etc/hosts
2017-08-30 05:51:28 +02:00
cp $VINAIGRETTE_HOME/conf/nginx.conf /etc/nginx/sites-enabled/repo.conf
2017-08-30 05:30:18 +02:00
service nginx reload
2017-08-29 17:17:25 +02:00
2017-08-30 05:30:18 +02:00
rebuildd init