Remove postinst on cron and beanstalkd.
This commit is contained in:
parent
c6953834a7
commit
834581e4d8
|
@ -2,3 +2,21 @@ export LC_ALL=C
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
minimal_apt_get_install='apt-get install -y --no-install-recommends'
|
minimal_apt_get_install='apt-get install -y --no-install-recommends'
|
||||||
|
|
||||||
|
install_without_postinst() {
|
||||||
|
local PACKAGE
|
||||||
|
PACKAGE=$1
|
||||||
|
|
||||||
|
mkdir -p /tmp/install_$PACKAGE
|
||||||
|
cd /tmp/install_$PACKAGE
|
||||||
|
|
||||||
|
apt-get download $PACKAGE
|
||||||
|
dpkg --unpack $PACKAGE*.deb
|
||||||
|
rm -f /var/lib/dpkg/info/$PACKAGE.postinst
|
||||||
|
dpkg --configure $PACKAGE
|
||||||
|
|
||||||
|
apt-get install -yf #To fix dependencies
|
||||||
|
|
||||||
|
cd /
|
||||||
|
rm -rf /tmp/install_$PACKAGE
|
||||||
|
}
|
||||||
|
|
|
@ -3,11 +3,6 @@ set -e
|
||||||
source /bd_build/buildconfig
|
source /bd_build/buildconfig
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
apt-get update
|
$minimal_apt_get_install netbase
|
||||||
|
|
||||||
# Prevent systemd auto-startup
|
install_without_postinst beanstalkd
|
||||||
ln -s /dev/null /etc/systemd/system/beanstalkd.service
|
|
||||||
|
|
||||||
echo "STARTTIME=30" > /etc/default/beanstalkd
|
|
||||||
|
|
||||||
$minimal_apt_get_install -o Dpkg::Options::="--force-confdef" beanstalkd
|
|
||||||
|
|
|
@ -3,10 +3,7 @@ set -e
|
||||||
source /bd_build/buildconfig
|
source /bd_build/buildconfig
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# Prevent systemd auto-startup
|
install_without_postinst cron
|
||||||
ln -s /dev/null /etc/systemd/system/cron.service
|
|
||||||
|
|
||||||
$minimal_apt_get_install cron
|
|
||||||
|
|
||||||
chmod 600 /etc/crontab
|
chmod 600 /etc/crontab
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue