vinaigrette/scripts/init.sh

32 lines
1 KiB
Bash
Raw Normal View History

2017-08-30 05:30:18 +02:00
2022-01-10 02:07:43 +01:00
apt-get install nginx sbuild schroot reprepro gawk sendxmpp -y
2017-09-01 02:06:07 +02:00
apt-get install python-virtualenv python3-pip -y
apt-get install boxes -y
2017-08-30 05:30:18 +02:00
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
2022-01-10 02:07:43 +01:00
#ln -s /root/keys config/keys
#gpg --import config/keys/$DEBSIGN_KEYID.key
#gpg --import config/keys/$DEBSIGN_KEYID.pub
2017-08-30 05:51:28 +02:00
2018-04-26 18:17:56 +02:00
mkdir gitrepos
2017-08-30 05:51:28 +02:00
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
2022-01-10 02:07:43 +01:00
#git clone https://github.com/YunoHost/rspamd
#git clone https://git.donarmstrong.com/unscd.git
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
cp $VINAIGRETTE_HOME/config/nginx.conf /etc/nginx/sites-enabled/repo.conf
2017-08-31 19:55:09 +02:00
sed -i "s/__REPO_URL__/$REPO_URL/g" /etc/nginx/sites-enabled/repo.conf
2017-08-30 05:30:18 +02:00
echo "127.0.0.1 $REPO_URL" >> /etc/hosts
service nginx reload