echo "The credentials file has been deleted"
echo "on the previous run extracting credentials file."
echo "Please wait re-extracting the credentials file"
- if ! tar zxvf ../setup_head_file.tar.gz -C . setup_head_file/debconf-settings
+ if ! tar hxvf ../setup_head_file.tar.gz -C . setup_head_file/debconf-settings
then
echo
echo "failed to re-extract credentials file"
else
hostnamectl set-hostname "head_file"
fi
-tar zxvf head_file_etc-hosts.tar.gz -C /
+tar hxvf head_file_etc-hosts.tar.gz -C /
sed -i 's/^domain.*/domain CLUSTER_DOMAINNAME/g' /etc/resolv.conf
sed -i 's/^search.*/search CLUSTER_DOMAINNAME/g' /etc/resolv.conf
then
rm -rf /etc/netplan
fi
-tar zxvf head_file.tar.gz -C / >> $INSTALL_LOG 2>&1
+tar hxvf head_file.tar.gz -C / >> $INSTALL_LOG 2>&1
### Display extracted config files.
cat $INSTALL_LOG
echo "The credentials file has been deleted"
echo "on the previous run extracting credentials file."
echo "Re-extracting the credentials file"
- if ! tar zxvf ../setup_tar_file.tar.gz -C . setup_tar_file/debconf-settings
+ if ! tar hxvf ../setup_tar_file.tar.gz -C . setup_tar_file/debconf-settings
then
echo
echo "failed to re-extract credentials file"
### xtract /etc/hosts files.
echo "Files Installed"
-tar zxvf tar_file_etc-hosts.tar.gz -C / 2>&1 | tee -a $INSTALL_LOG
+tar hxvf tar_file_etc-hosts.tar.gz -C / 2>&1 | tee -a $INSTALL_LOG
### Fixup /etc/resolv.conf
sed -i 's/^domain.*/domain CLUSTER_DOMAINNAME/g' /etc/resolv.conf
rm -rf /etc/netplan
fi
-tar zxvf tar_file.tar.gz -C /
+tar hxvf tar_file.tar.gz -C /
ConfigLogging
GetNics