mirror of
https://github.com/YunoHost/vinaigrette.git
synced 2024-09-03 20:06:11 +02:00
Make repo url configurable / move to new url for tests
This commit is contained in:
parent
23d83ac52c
commit
0f74b3de1e
6 changed files with 9 additions and 6 deletions
|
@ -6,7 +6,7 @@ DEBSIGN_KEYID=59A3E6FF
|
||||||
DEBFULLNAME="YunoHost Contributors"
|
DEBFULLNAME="YunoHost Contributors"
|
||||||
DEBEMAIL="contrib@yunohost.org"
|
DEBEMAIL="contrib@yunohost.org"
|
||||||
MAIL="rebuildd@yunohost.org"
|
MAIL="rebuildd@yunohost.org"
|
||||||
REPO_URL="repo.yunohost.org"
|
REPO_URL="vinaigrette.yunohost.org"
|
||||||
|
|
||||||
# Codenames, components and architectures
|
# Codenames, components and architectures
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name repo.yunohost.org;
|
server_name __REPO_URL__;
|
||||||
|
|
||||||
location '/.well-known/acme-challenge' {
|
location '/.well-known/acme-challenge' {
|
||||||
default_type "text/plain";
|
default_type "text/plain";
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
deb-src http://repo.yunohost.org/debian jessie stable testing unstable extra
|
deb-src http://__REPO_URL__/debian jessie stable testing unstable extra
|
||||||
deb-src http://repo.yunohost.org/debian stretch stable testing unstable extra
|
deb-src http://__REPO_URL__/debian stretch stable testing unstable extra
|
||||||
|
|
3
init.sh
3
init.sh
|
@ -35,6 +35,9 @@ cp $VINAIGRETTE_HOME/config/nginx.conf /etc/nginx/sites-enabled/repo.conf
|
||||||
cat $VINAIGRETTE_HOME/config/keys/$DEBSIGN_KEYID.pub | apt-key add
|
cat $VINAIGRETTE_HOME/config/keys/$DEBSIGN_KEYID.pub | apt-key add
|
||||||
cat $VINAIGRETTE_HOME/config/sources.list > /etc/apt/sources.list.d/vinaigrette.list
|
cat $VINAIGRETTE_HOME/config/sources.list > /etc/apt/sources.list.d/vinaigrette.list
|
||||||
|
|
||||||
|
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 "127.0.0.1 $REPO_URL" >> /etc/hosts
|
echo "127.0.0.1 $REPO_URL" >> /etc/hosts
|
||||||
service nginx reload
|
service nginx reload
|
||||||
|
|
||||||
|
|
|
@ -115,4 +115,4 @@ fi
|
||||||
# exit 1
|
# exit 1
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
echo "Build will start soon. See http://rebuild.yunohost.org"
|
echo "Build will start soon. See http://$REPO_URL"
|
||||||
|
|
|
@ -92,7 +92,7 @@ fi
|
||||||
|
|
||||||
export HOME=$HOME_PBUILDER
|
export HOME=$HOME_PBUILDER
|
||||||
|
|
||||||
xmpp_msg="[rebuildd] Completed build of ${package}/${version} in ${COMPONENT} for ${CODENAME}/${arch}. See http://rebuild.yunohost.org/job/${job}"
|
xmpp_msg="[rebuildd] Completed build of ${package}/${version} in ${COMPONENT} for ${CODENAME}/${arch}. See http://$REPO_URL/job/${job}"
|
||||||
|
|
||||||
echo -n "$xmpp_msg" \
|
echo -n "$xmpp_msg" \
|
||||||
| sendxmpp -u gitbot -j im.yunohost.org -p "$XMPP_BOT_KEY" \
|
| sendxmpp -u gitbot -j im.yunohost.org -p "$XMPP_BOT_KEY" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue