This is an experimental copy for testing Poikilos' issue mirroring system. Note that Gitea's migration tool can import issues, but the "Issues" checkbox is disabled when "This repository will be a mirror" is enabled (it is for this repo).
You can not select more than 25 topicsTopics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
echo"Error: contained_repo can't be blank or checking for its files in the container won't work."
exit1
fi
# ls $contained_repo
echo"* checking for $contained_good_repo_flag_path on the destination..."
ls $contained_good_repo_flag_path > /dev/null
if[$? -ne 0];then
echo"NOT FOUND"
printf"Warning: the Docker image isn't up to date. Unzipping manually..."
printf"checking for unzip..."
container_unzip="`which unzip`"
if["@$container_unzip"="@"];then
echo"NOT FOUND. Installing..."
# This should never happen if the Dockerfile was used.
apt-get update
if[$? -ne 0];thenexit 1;fi
apt-get install -y unzip
if[$? -ne 0];thenexit 1;fi
container_unzip="`which unzip`"
if["@$container_unzip"="@"];then
echo"Error: Installing unzip in the container did not succeed. Install unzip inside the container manually then try again, or extract linux-minetest-kit such that $contained_good_repo_flag_path exists."
# -d: is destination, like -C or --directory for tar.
# -v: verbose (prevents extraction)
if[$? -ne 0];then
echo"Error: unzip failed within the container. Install unzip inside the container manually then try again, or extract linux-minetest-kit such that $contained_good_repo_flag_path exists."
exit1
fi
else
echo"FOUND (already extracted)"
fi
# ls $contained_repo > /dev/null
ls $contained_good_repo_flag_path > /dev/null
if[$? -ne 0];then
echo"Error: extracting linux-minetest-kit.zip in the container didn't work. Extract linux-minetest-kit.zip to $contained_repos such that $contained_good_repo_flag_path exists in the container and try again."
exit1
else
echo"* detected $contained_good_repo_flag_path (So the source directory is assumed to be ok)"
fi
if["@$contained_user"="@"];then
echo"Error: contained_user can't be blank, or checking for the user within the container will not work."
exit1
fi
id -u $contained_user
if[$? -ne 0];then
printf"* creating $contained_user in container $container_name..."