diff --git a/README.md b/README.md index 74a387c..48d6a82 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The test results are printed directly in the terminal and stored in the log file - make sure your user is in the `lxd` or `incus-admin` group (`sudo usermod -a -G lxd MYUSER`) - **restart your computer**: this will ensure you have indeed the permissions, and that LXD/Incus can access the BTRFS kernel module - make sure LXC/Incus is initialized with `lxd init` or `incus admin init --minimal`; in the case of LXD, make sure to use the `btrfs` storage driver unless you know what you are doing -- if using LXD, run this command to add the Yunohost image repository: `lxc remote add yunohost https://devbaseimgs.yunohost.org --public`; at the time this README is written, fingerprint is `d9ae6e76c374e3c58c3c20a881cffe7435809adb3b222ec393805f5bd01bb522` +- if using LXD, run this command to add the Yunohost image repository: `lxc remote add yunohost https://repo.yunohost.org/incus --protocol simplestreams --public`; at the time this README is written, fingerprint is `d9ae6e76c374e3c58c3c20a881cffe7435809adb3b222ec393805f5bd01bb522`
More details about LXD/Incus settings @@ -87,7 +87,7 @@ The app is expected to contain a `tests.toml` file (see below) to tell package_c -r, --rebuild (Re)Build the base container (N.B.: you're not supposed to use this option, images are supposed to be fetch from - devbaseimgs.yunohost.org automatically) + https://repo.yunohost.org/incus automatically) -h, --help Display this help ``` diff --git a/lib/common.sh b/lib/common.sh index 00b25e8..087755b 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -16,7 +16,7 @@ DEFAULT_PHP_VERSION=${DEFAULT_PHP_VERSION:-7.4} YNH_BRANCH=${YNH_BRANCH:-stable} WORKER_ID=${WORKER_ID:-0} -LXC_BASE="ynh-appci-$DIST-$ARCH-$YNH_BRANCH-base" +LXC_BASE="yunohost/$DIST-$YNH_BRANCH/appci" LXC_NAME="ynh-appci-$DIST-$ARCH-$YNH_BRANCH-test-${WORKER_ID}" readonly lock_file="./pcheck-${WORKER_ID}.lock" @@ -79,9 +79,13 @@ function check_incus_setup() function set_incus_remote() { - configured=$(incus remote list -f json | jq 'has("yunohost")') - if [[ "$configured" != "true" ]]; then - incus remote add yunohost https://devbaseimgs.yunohost.org --public + remote_url=$(incus remote list -f json | jq '.yunohost.Addr') + if [[ "${remote_url}" == *"devbaseimgs"* ]]; then + incus remote remove yunohost + remote_url=null + fi + if [[ "$remote_url" == "null" ]]; then + incus remote add yunohost https://repo.yunohost.org/incus --protocol simplestream --public fi } diff --git a/package_check.sh b/package_check.sh index d6135b4..9e02e75 100755 --- a/package_check.sh +++ b/package_check.sh @@ -20,7 +20,7 @@ print_help() { -r, --rebuild (Re)Build the base container (N.B.: you're not supposed to use this option, images are supposed to be fetch from - devbaseimgs.yunohost.org automatically) + repo.yunohost.org/incus automatically) -S, --storage-dir DIRECTORY Where to store temporary test files like yunohost backups -h, --help Display this help