mirror of
https://github.com/YunoHost/lxd_img_builder.git
synced 2024-09-03 19:56:55 +02:00
Fix unattended_upgrade not starting
This commit is contained in:
parent
87022f9894
commit
c5cefc05d3
1 changed files with 6 additions and 5 deletions
|
@ -83,18 +83,19 @@ function rebuild_base_lxc()
|
|||
local INSTALL_SCRIPT="https://install.yunohost.org/$DIST"
|
||||
|
||||
$IN_LXC apt install curl -y
|
||||
$IN_LXC /bin/bash -c "echo exit 101 > /usr/sbin/policy-rc.d"
|
||||
$IN_LXC /bin/bash -c "chmod +x /usr/sbin/policy-rc.d"
|
||||
$IN_LXC /bin/bash -c "curl $INSTALL_SCRIPT | bash -s -- -a -d $YNH_BRANCH"
|
||||
|
||||
$IN_LXC systemctl -q stop apt-daily.timer
|
||||
$IN_LXC systemctl -q stop apt-daily-upgrade.timer
|
||||
$IN_LXC systemctl -q stop apt-daily.service
|
||||
$IN_LXC systemctl -q stop apt-daily-upgrade.service
|
||||
$IN_LXC /bin/bash -c "rm /usr/sbin/policy-rc.d"
|
||||
|
||||
$IN_LXC systemctl -q disable apt-daily.timer
|
||||
$IN_LXC systemctl -q disable apt-daily-upgrade.timer
|
||||
$IN_LXC systemctl -q disable apt-daily.service
|
||||
$IN_LXC systemctl -q disable apt-daily-upgrade.service
|
||||
$IN_LXC rm -f /etc/cron.daily/apt-compat
|
||||
$IN_LXC cp /bin/true /usr/lib/apt/apt.systemd.daily
|
||||
$IN_LXC /bin/bash -c "reboot 0"
|
||||
sleep 5
|
||||
|
||||
# Publish ynh-dev image
|
||||
local LXC_BASE="ynh-dev-$DIST-$ARCH-$YNH_BRANCH-base"
|
||||
|
|
Loading…
Reference in a new issue