+ --no-check-certificate
This commit is contained in:
@@ -20,7 +20,7 @@ options_url=https://git.mz.fo/fro/lnx-arch/raw/branch/master/dots/archinstall/${
|
|||||||
options_trg=/tmp/options.sh
|
options_trg=/tmp/options.sh
|
||||||
rm -rf ${options_trg}
|
rm -rf ${options_trg}
|
||||||
rm -rf ${options_trg}.tmp
|
rm -rf ${options_trg}.tmp
|
||||||
wget -q ${options_url} -O ${options_trg}
|
wget --no-check-certificate -q ${options_url} -O ${options_trg}
|
||||||
source ${options_trg}
|
source ${options_trg}
|
||||||
if [ -z "${OPTIONS_LOADED}" ]; then
|
if [ -z "${OPTIONS_LOADED}" ]; then
|
||||||
echo "error: unable to load options"
|
echo "error: unable to load options"
|
||||||
@@ -51,7 +51,7 @@ download_repo() {
|
|||||||
# instead of doing a git clone (like `git clone ${clone_url} ${clone_trg}`),
|
# instead of doing a git clone (like `git clone ${clone_url} ${clone_trg}`),
|
||||||
# where i would have emptied the target dir each time, i download the
|
# where i would have emptied the target dir each time, i download the
|
||||||
# source as a tar.gz.
|
# source as a tar.gz.
|
||||||
wget --show-progress ${_targz_url} -O ${clone_trg}/tmp.tar.gz
|
wget --no-check-certificate --show-progress ${_targz_url} -O ${clone_trg}/tmp.tar.gz
|
||||||
tar -xzf ${clone_trg}/tmp.tar.gz -C ${clone_trg}
|
tar -xzf ${clone_trg}/tmp.tar.gz -C ${clone_trg}
|
||||||
rm ${clone_trg}/tmp.tar.gz
|
rm ${clone_trg}/tmp.tar.gz
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ if [ ${operation} == "update" ] ; then
|
|||||||
rm -rf ${trg_file}
|
rm -rf ${trg_file}
|
||||||
rm -rf ${trg_file}.tmp
|
rm -rf ${trg_file}.tmp
|
||||||
|
|
||||||
wget -q ${package_list_url} -O ${trg_file}
|
wget --no-check-certificate -q ${package_list_url} -O ${trg_file}
|
||||||
|
|
||||||
if ! [ -s ${trg_file} ] ; then
|
if ! [ -s ${trg_file} ] ; then
|
||||||
echo "error: packages.txt is empty"
|
echo "error: packages.txt is empty"
|
||||||
@@ -130,7 +130,7 @@ if [ ${operation} == "services" ] ; then
|
|||||||
|
|
||||||
rm -rf ${trg_file}
|
rm -rf ${trg_file}
|
||||||
|
|
||||||
wget -q ${service_list_url} -O ${trg_file}
|
wget --no-check-certificate -q ${service_list_url} -O ${trg_file}
|
||||||
|
|
||||||
if ! [ -s ${trg_file} ] ; then
|
if ! [ -s ${trg_file} ] ; then
|
||||||
echo "error: services.txt is empty"
|
echo "error: services.txt is empty"
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ execute_script() {
|
|||||||
echo "execute: ${file} ${parameter_1} ${parameter_2}"
|
echo "execute: ${file} ${parameter_1} ${parameter_2}"
|
||||||
resource_url=${scripts_url}/${file}
|
resource_url=${scripts_url}/${file}
|
||||||
|
|
||||||
if ! wget -q --method=HEAD ${resource_url};
|
if ! wget --no-check-certificate -q --method=HEAD ${resource_url};
|
||||||
then
|
then
|
||||||
echo "error: unable to load '${resource_url}'"
|
echo "error: unable to load '${resource_url}'"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -66,7 +66,7 @@ execute_script() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget -q ${resource_url} -O /tmp/${file}
|
wget --no-check-certificate -q ${resource_url} -O /tmp/${file}
|
||||||
chmod 755 /tmp/*.sh
|
chmod 755 /tmp/*.sh
|
||||||
/tmp/${file} ${parameter_1} ${parameter_2}
|
/tmp/${file} ${parameter_1} ${parameter_2}
|
||||||
}
|
}
|
||||||
@@ -133,7 +133,7 @@ shopt -u extglob
|
|||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
if [ $operation == "us" ] || [ $operation == "upd-self" ] ; then
|
if [ $operation == "us" ] || [ $operation == "upd-self" ] ; then
|
||||||
|
|
||||||
wget -v ${base_url}/scripts/${this_file} -O ${home_dir}/${this_file}.tmp
|
wget --no-check-certificate -v ${base_url}/scripts/${this_file} -O ${home_dir}/${this_file}.tmp
|
||||||
cp ${home_dir}/${this_file}.tmp ${home_dir}/${this_file}
|
cp ${home_dir}/${this_file}.tmp ${home_dir}/${this_file}
|
||||||
rm ${home_dir}/${this_file}.tmp
|
rm ${home_dir}/${this_file}.tmp
|
||||||
chmod 755 ${home_dir}/*.sh
|
chmod 755 ${home_dir}/*.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user