forked from ISTI-ansible-roles/ansible-roles
update_r_packages: Change the way the debian packages are installed. Now a failure involves that single package and not the whole list.
This commit is contained in:
parent
950e8e4d27
commit
370590b93b
|
@ -139,7 +139,11 @@ function debian_pkgs() {
|
||||||
else
|
else
|
||||||
logger "update_r_packages: APT cache not updated"
|
logger "update_r_packages: APT cache not updated"
|
||||||
fi
|
fi
|
||||||
xargs -a <(awk '/^\s*[^#]/' "$PKGS_LIST") -r -- apt-get install -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" >/var/log/update_r_debs.log 2>&1
|
>/var/log/update_r_debs.log
|
||||||
|
while read deb_pkg ; do
|
||||||
|
apt-get install ${deb_pkg} -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" >>/var/log/update_r_debs.log 2>&1
|
||||||
|
done < $PKGS_LIST
|
||||||
|
apt-get autoremove -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" >> /var/log/update_r_debs.log 2>&1
|
||||||
else
|
else
|
||||||
logger "update_r_packages: skipping the debian packages installation"
|
logger "update_r_packages: skipping the debian packages installation"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue