Replacing jessie and old repo with stretch and new repo

This commit is contained in:
Alexandre Aubin 2018-04-28 23:29:04 +02:00
parent 574f6cac52
commit 1f810dbecc
5 changed files with 13 additions and 15 deletions

View file

@ -3,7 +3,7 @@
# Get the script directory
script_dir="$(dirname $(realpath $0))"
repo_url="http://repo.yunohost.org/debian/"
repo_url="http://forge.yunohost.org/debian/"
build_yunohost_org_dir="/var/www/build"
@ -59,7 +59,7 @@ compare_version () {
fi
}
deb_dist=jessie
deb_dist=stretch
dist=stable
compare_version "$(get_ynh_release)"

View file

@ -2,10 +2,10 @@
# Usage ./build-yunohost [ARCH [DIST [DEB_DIST]]]
# ARCH amd64|i386
# DIST stable|testing
# DEB_DIST jessie|stretch
# DEB_DIST stretch
readonly DEFAULT_DEB_DIST="jessie"
readonly REPO_URL="http://repo.yunohost.org/debian/"
readonly DEFAULT_DEB_DIST="stretch"
readonly REPO_URL="http://forge.yunohost.org/debian/"
readonly ARCH_CHOICE=$1
readonly DIST="${2:-stable}"
@ -22,10 +22,8 @@ function build
info "Starting build for arch $ARCH ..."
if [ "$DIST" = "testing" ] ; then
sed -i "s#$REPO_URL jessie stable#$REPO_URL $DEB_DIST stable testing#" profiles/*.preseed
sed -i "s#$REPO_URL stretch stable#$REPO_URL $DEB_DIST stable testing#" profiles/*.preseed
else
sed -i "s#$REPO_URL jessie stable testing#$REPO_URL $DEB_DIST stable#" profiles/*.preseed
sed -i "s#$REPO_URL stretch stable testing#$REPO_URL $DEB_DIST stable#" profiles/*.preseed
fi

View file

@ -69,8 +69,8 @@ d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string security.debian.org
d-i apt-setup/local0/repository string \
http://repo.yunohost.org/debian/ jessie stable
d-i apt-setup/local0/key string http://repo.yunohost.org/debian/yunohost.asc
http://forge.yunohost.org/debian/ stretch stable
d-i apt-setup/local0/key string http://forge.yunohost.org/yunohost.asc
d-i apt-setup/local0/comment string YunoHost repository
#d-i debian-installer/allow_unauthenticated string true

View file

@ -69,8 +69,8 @@ d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string security.debian.org
d-i apt-setup/local0/repository string \
http://repo.yunohost.org/debian/ jessie stable
d-i apt-setup/local0/key string http://repo.yunohost.org/debian/yunohost.asc
http://forge.yunohost.org/debian/ stretch stable
d-i apt-setup/local0/key string http://forge.yunohost.org/yunohost.asc
d-i apt-setup/local0/comment string YunoHost repository
#d-i debian-installer/allow_unauthenticated string true

View file

@ -40,11 +40,11 @@ d-i passwd/make-user boolean fasle
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/local0/repository string \
http://repo.yunohost.org/ megusta main
http://forge.yunohost.org/ stretch stable
d-i apt-setup/local1/repository string \
http://repo.yunohost.org/ test main
d-i apt-setup/local0/key string http://repo.yunohost.org/yunohost.asc
d-i apt-setup/local1/key string http://repo.yunohost.org/yunohost.asc
http://forge.yunohost.org/ stretch stable
d-i apt-setup/local0/key string http://forge.yunohost.org/yunohost.asc
d-i apt-setup/local1/key string http://forge.yunohost.org/yunohost.asc
d-i debian-installer/allow_unauthenticated string true
tasksel tasksel/first multiselect standard, web-server, ssh-server
d-i pkgsel/include postfix yunohost