echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDZ3QNzqiDE6jUzmXnOzIM93mZBPZtSDbCgYQd8xwOz9ZROxqLcckr8qIvyLFDv/fedwQlLDTg90LGX/zHHAB0T+0DB2dMFOWeSloIMMp+0WwG9i6H0ty6NUVSktvG6h4jbgkhMhHGUEHhxgR2LgxTjq8fpcMOLJ4HLLGW9W3BQOVtoi8hiffKm5DB9Au0HgNvXP/UrCQkBtFzMyhRb7D7aFyDyU/7SuM6m17DIYNx1cg79AH3mjRTQXaOVBrOBJ4uaqy6srbGzWs5FSIMMbgOrcmZRw5GilrG5dBbT/OQSN+sHlECx216pyLrbSWcwG1Fo11iI53pnColRUljMIPJ+XRffxT2yINEfyvfr0GGMKi4c5fcDumgYwT2+foefy72sBhNwKhzjuGySPgRU/1PH8oIcu4TJWyW1xi0AfVZnJhjU5RKeWQ9VMhh1nDntpRdD5z+0FrAL+9AINW4Bjboc6OisikIABBeoT9mbYNNGdHA7rpdJwURycJDpJDhyr0voNnmQ15JF6KZebM0+OW9apTxdotKPKYJ8pFBRGXrTENSVvFNIBbYD55IJ2MlOD2eX6XX2/tnHMdZHCE9Gi22Y8p1oiahLtCU3Th8WwazQlh4H9xAJzK0jp7MOpI3Y553i8zBU47VpO5juELH2bCNwChpdbZbY0i6MxQF61d2iJw== create-vmware-tpl@pixelpark.com" >> /root/.ssh/authorized_keys
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
cat "${tmp_file}" >> /root/.ssh/authorized_keys
fi
for fullname in "${stem}" "${stem}.pub" ; do
tmp_file=$( mktemp )
url="${COBBLER_URL}/custom/create-vmware-tpl/keys/${fullname}"
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}"
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}"
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/ssh/${fullname}"
if [[ "${stem}" == "${fullname}" ]] ; then
tgt="/etc/yum.repos.d/${bname}"
echo
echo "Retrieving '${url}' -> '${tgt}' ..."
- if wget -O "${tgt}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tgt}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get '${bname}' from '${url}'." | tee -a "${ERROR_POINTER}"
tgt="/etc/pki/rpm-gpg/${bname}"
echo
echo "Retrieving '${url}' -> '${tgt}' ..."
- if wget -O "${tgt}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tgt}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get '${bname}' from '${url}'." | tee -a "${ERROR_POINTER}"
local local_tar=$( mktemp -p /tmp "linux_tcsh.XXXXXXXX.tar" )
echo "Local tar file: '${local_tar}'."
- if wget -O "${local_tar}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${local_tar}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get 'linux_tcsh.tar' from '${url}'." | tee -a "${ERROR_POINTER}"
url="${COBBLER_URL}/custom/create-vmware-tpl/files/fbr.sh"
local tgt="/etc/profile.d/fbr.sh"
echo "Retrieving '${url}' -> '${tgt}' ..."
- if wget -O "${tgt}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}"; then
+ if curl -s -S -o "${tgt}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get 'fbr.sh' from '${url}'." | tee -a "${ERROR_POINTER}"
echo
log "Creating initial /etc/motd ..."
local mk_script=$( mktemp -p /tmp "mk_create_motd.XXXXXXXXXX.ksh" )
- if wget -O "${mk_script}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${mk_script}" --connect-timeout=3 --expect100-timeout=3 "${url}"; then
chmod 0755 "${mk_script}"
"${mk_script}" -i 192.168.88.0/23 \
-p "Template VM" \
local tgt="/etc/logrotate.conf"
echo "Getting ${url} => ${tgt} ..."
- if wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get 'logrotate.conf' from '${url}'." | tee -a "${ERROR_POINTER}"
tgt="/etc/logrotate.d/${base}"
cp -v /dev/null "${tmp_file}"
echo "Getting ${url} => ${tgt} ..."
- if wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get '${base}' from '${url}'." | tee -a "${ERROR_POINTER}"
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDZ3QNzqiDE6jUzmXnOzIM93mZBPZtSDbCgYQd8xwOz9ZROxqLcckr8qIvyLFDv/fedwQlLDTg90LGX/zHHAB0T+0DB2dMFOWeSloIMMp+0WwG9i6H0ty6NUVSktvG6h4jbgkhMhHGUEHhxgR2LgxTjq8fpcMOLJ4HLLGW9W3BQOVtoi8hiffKm5DB9Au0HgNvXP/UrCQkBtFzMyhRb7D7aFyDyU/7SuM6m17DIYNx1cg79AH3mjRTQXaOVBrOBJ4uaqy6srbGzWs5FSIMMbgOrcmZRw5GilrG5dBbT/OQSN+sHlECx216pyLrbSWcwG1Fo11iI53pnColRUljMIPJ+XRffxT2yINEfyvfr0GGMKi4c5fcDumgYwT2+foefy72sBhNwKhzjuGySPgRU/1PH8oIcu4TJWyW1xi0AfVZnJhjU5RKeWQ9VMhh1nDntpRdD5z+0FrAL+9AINW4Bjboc6OisikIABBeoT9mbYNNGdHA7rpdJwURycJDpJDhyr0voNnmQ15JF6KZebM0+OW9apTxdotKPKYJ8pFBRGXrTENSVvFNIBbYD55IJ2MlOD2eX6XX2/tnHMdZHCE9Gi22Y8p1oiahLtCU3Th8WwazQlh4H9xAJzK0jp7MOpI3Y553i8zBU47VpO5juELH2bCNwChpdbZbY0i6MxQF61d2iJw== create-vmware-tpl@pixelpark.com" >> /root/.ssh/authorized_keys
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
cat "${tmp_file}" >> /root/.ssh/authorized_keys
fi
for fullname in "${stem}" "${stem}.pub" ; do
tmp_file=$( mktemp )
url="${COBBLER_URL}/custom/create-vmware-tpl/keys/${fullname}"
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}"
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}"
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/ssh/${fullname}"
if [[ "${stem}" == "${fullname}" ]] ; then
tgt="/etc/yum.repos.d/${bname}"
echo
echo "Retrieving '${url}' -> '${tgt}' ..."
- if wget -O "${tgt}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tgt}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get '${bname}' from '${url}'." | tee -a "${ERROR_POINTER}"
tgt="/etc/pki/rpm-gpg/${bname}"
echo
echo "Retrieving '${url}' -> '${tgt}' ..."
- if wget -O "${tgt}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tgt}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get '${bname}' from '${url}'." | tee -a "${ERROR_POINTER}"
local local_tar=$( mktemp -p /tmp "linux_tcsh.XXXXXXXX.tar" )
echo "Local tar file: '${local_tar}'."
- if wget -O "${local_tar}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${local_tar}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get 'linux_tcsh.tar' from '${url}'." | tee -a "${ERROR_POINTER}"
url="${COBBLER_URL}/custom/create-vmware-tpl/files/fbr.sh"
local tgt="/etc/profile.d/fbr.sh"
echo "Retrieving '${url}' -> '${tgt}' ..."
- if wget -O "${tgt}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}"; then
+ if curl -s -S -o "${tgt}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get 'fbr.sh' from '${url}'." | tee -a "${ERROR_POINTER}"
echo
log "Creating initial /etc/motd ..."
local mk_script=$( mktemp -p /tmp "mk_create_motd.XXXXXXXXXX.ksh" )
- if wget -O "${mk_script}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${mk_script}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
chmod 0755 "${mk_script}"
"${mk_script}" -i 192.168.88.0/23 \
-p "Template VM" \
local tgt="/etc/logrotate.conf"
echo "Getting ${url} => ${tgt} ..."
- if wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tgt}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get 'logrotate.conf' from '${url}'." | tee -a "${ERROR_POINTER}"
tgt="/etc/logrotate.d/${base}"
cp -v /dev/null "${tmp_file}"
echo "Getting ${url} => ${tgt} ..."
- if wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get '${base}' from '${url}'." | tee -a "${ERROR_POINTER}"
- 'tmux'
- 'traceroute'
- 'vim'
- - 'wget'
- 'yum-utils'
- '-abrt*'
- '-nfs*'
- 'tmux'
# - 'traceroute'
- 'vim'
- - 'wget'
# - 'yum-utils'
- '-iwl*'
- '-mysql-community*'
- 'tmux'
# - 'traceroute'
- 'vim'
- - 'wget'
# - 'yum-utils'
- '-abrt*'
- '-iwl*'
- 'tmux'
- 'traceroute'
- 'vim'
- - 'wget'
- 'yum-utils'
- '-abrt*'
- '-nfs*'
- 'tmux'
# - 'traceroute'
- 'vim'
- - 'wget'
# - 'yum-utils'
- '-iwl*'
- '-mysql-community*'
- 'tmux'
# - 'traceroute'
- 'vim'
- - 'wget'
# - 'yum-utils'
- '-abrt*'
- '-iwl*'
- 'tmux'
- 'traceroute'
- 'vim'
- - 'wget'
- 'yum-utils'
- '-abrt*'
- '-nfs*'
traceroute
tmux
vim
-wget
yum-utils
%end
telnet
tmux
vim
-wget
yum-utils
%end
tmux
traceroute
vim
-wget
yum-utils
-abrt*
-nfs*
telnet
tmux
vim
-wget
yum-utils
-mysql-community*
%end
traceroute
tmux
vim
-wget
yum-utils
%end
telnet
tmux
vim
-wget
yum-utils
-mysql-community*
-*uek*
telnet
tmux
vim
-wget
yum-utils
-mysql-community*
%end
telnet
tmux
vim
-wget
yum-utils
%end
telnet
tmux
vim
-wget
yum-utils
-mysql-community*
-*uek*
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDZ3QNzqiDE6jUzmXnOzIM93mZBPZtSDbCgYQd8xwOz9ZROxqLcckr8qIvyLFDv/fedwQlLDTg90LGX/zHHAB0T+0DB2dMFOWeSloIMMp+0WwG9i6H0ty6NUVSktvG6h4jbgkhMhHGUEHhxgR2LgxTjq8fpcMOLJ4HLLGW9W3BQOVtoi8hiffKm5DB9Au0HgNvXP/UrCQkBtFzMyhRb7D7aFyDyU/7SuM6m17DIYNx1cg79AH3mjRTQXaOVBrOBJ4uaqy6srbGzWs5FSIMMbgOrcmZRw5GilrG5dBbT/OQSN+sHlECx216pyLrbSWcwG1Fo11iI53pnColRUljMIPJ+XRffxT2yINEfyvfr0GGMKi4c5fcDumgYwT2+foefy72sBhNwKhzjuGySPgRU/1PH8oIcu4TJWyW1xi0AfVZnJhjU5RKeWQ9VMhh1nDntpRdD5z+0FrAL+9AINW4Bjboc6OisikIABBeoT9mbYNNGdHA7rpdJwURycJDpJDhyr0voNnmQ15JF6KZebM0+OW9apTxdotKPKYJ8pFBRGXrTENSVvFNIBbYD55IJ2MlOD2eX6XX2/tnHMdZHCE9Gi22Y8p1oiahLtCU3Th8WwazQlh4H9xAJzK0jp7MOpI3Y553i8zBU47VpO5juELH2bCNwChpdbZbY0i6MxQF61d2iJw== create-vmware-tpl@pixelpark.com" >> /root/.ssh/authorized_keys
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
cat "${tmp_file}" >> /root/.ssh/authorized_keys
fi
log "Rewriting /etc/rsyslog.conf ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url_top}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url_top}" || true
if [[ -s "${tmp_file}" ]] ; then
cp -p /etc/rsyslog.conf /etc/rsyslog.conf.orig
mv -v "${tmp_file}" /etc/rsyslog.conf
log "Rewriting /etc/rsyslog.d/50_rsyslog.conf ..."
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url_sub}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url_sub}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" /etc/rsyslog.d/50_rsyslog.conf
chmod -v 0644 /etc/rsyslog.d/50_rsyslog.conf
log "Rewriting /etc/rsyslog.conf ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url_top}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url_top}" || true
if [[ -s "${tmp_file}" ]] ; then
cp -p /etc/rsyslog.conf /etc/rsyslog.conf.orig
mv -v "${tmp_file}" /etc/rsyslog.conf
log "Rewriting /etc/rsyslog.d/50_rsyslog.conf ..."
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url_sub}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url_sub}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" /etc/rsyslog.d/50_rsyslog.conf
chmod -v 0644 /etc/rsyslog.d/50_rsyslog.conf
log "Rewriting /etc/rsyslog.conf ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url_top}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url_top}" || true
if [[ -s "${tmp_file}" ]] ; then
cp -p /etc/rsyslog.conf /etc/rsyslog.conf.orig
mv -v "${tmp_file}" /etc/rsyslog.conf
log "Rewriting /etc/rsyslog.d/50_rsyslog.conf ..."
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url_sub}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url_sub}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" /etc/rsyslog.d/50_rsyslog.conf
chmod -v 0644 /etc/rsyslog.d/50_rsyslog.conf
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
sed -i -e "s|\${REPO_SERVER}|${redhat_repo_server}|g" \
-e "s|\${PATH_PREFIX}|${redhat_repo_path_prefix}|g" \
echo "Ensuring repo '${repo}.repo'..."
url="${base_url}/${repo}.repo"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" "/etc/yum.repos.d/${repo}.repo"
fi
log "Rewriting /etc/bashrc ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
cp -p /etc/bashrc /etc/bashrc.original
mv -v "${tmp_file}" /etc/bashrc
log "Rewriting /etc/bashrc ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
cp -p /etc/bashrc /etc/bashrc.original
mv -v "${tmp_file}" /etc/bashrc
log "Rewriting /etc/bashrc ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
cp -p /etc/bashrc /etc/bashrc.original
mv -v "${tmp_file}" /etc/bashrc
log "Rewriting /etc/vimrc ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
cp -p /etc/vimrc /etc/vimrc.original
mv -v "${tmp_file}" /etc/vimrc
log "Rewriting /etc/vimrc ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
cp -p /etc/vimrc /etc/vimrc.original
mv -v "${tmp_file}" /etc/vimrc
log "Writing /etc/vimrc.local ..."
local tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
if [[ -f '/etc/vimrc.local' ]] ; then
cp -p '/etc/vimrc.local' '/etc/vimrc.local.original'
log "Creating initial /etc/motd ..."
local mk_script=$( mktemp -p /tmp "mk_create_motd.XXXXXXXXXX.ksh" )
- if wget -O "${mk_script}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${mk_script}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
chmod 0755 "${mk_script}"
"${mk_script}" > /etc/motd
mkdir -pv /root/bin
echo "Getting new master.cf ..."
url="${cobbler_url}/${ws_rel_filesdir}/${system_status}/postfix/master.cf"
tmp_file=$( mktemp )
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" /etc/postfix/master.cf
fi
echo "Getting new virtuals ..."
cp /dev/null "${tmp_file}"
url="${cobbler_url}/${ws_rel_filesdir}/${system_status}/postfix/virtual"
- wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" || true
+ curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" || true
if [[ -s "${tmp_file}" ]] ; then
mv -v "${tmp_file}" /etc/postfix/virtual
fi
local tgt="/etc/logrotate.conf"
echo "Getting ${url} => ${tgt} ..."
- if wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get 'logrotate.conf' from '${url}'." | tee -a "${ERROR_POINTER}"
tgt="/etc/logrotate.d/${base}"
cp -v /dev/null "${tmp_file}"
echo "Getting ${url} => ${tgt} ..."
- if wget -O "${tmp_file}" --dns-timeout=2 --connect-timeout=3 --read-timeout=3 "${url}" ; then
+ if curl -s -S -o "${tmp_file}" --connect-timeout=3 --expect100-timeout=3 "${url}" ; then
:
else
echo "[$(date)]: Could not get '${base}' from '${url}'." | tee -a "${ERROR_POINTER}"