Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check whether old version is empty in postinst #4325

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions debian/cloud-init.postinst
Expand Up @@ -230,6 +230,10 @@ disable_network_config_on_upgrade() {
# this is a fresh system not one that has been booted.
return 0
fi
if [ -z $oldver ];then
# if the previous cloudinit was installed by source instead of a deb pkg, oldver would be empty
return 0
fi
if dpkg --compare-versions "$oldver" le "$last_without_net"; then
echo "dpkg upgrade from $oldver" > /var/lib/cloud/data/upgraded-network
fi
Expand Down
1 change: 1 addition & 0 deletions tools/.github-cla-signers
Expand Up @@ -76,6 +76,7 @@ jordimassaguerpla
jqueuniet
jsf9k
jshen28
jinkkkang
kadiron
kaiwalyakoparkar
kallioli
Expand Down