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

Fix: Package postrm/postinst failed if directory was missing #163

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packaging/aleph-vm/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ if ! id -u jailman > /dev/null 2>&1; then
useradd jailman
fi

rm -r /srv/jailer # Upgrade from < 0.1.11
rm -fr /srv/jailer # Upgrade from < 0.1.11
rm -fr /tmp/aleph # Upgrade from < 0.1.11
mkdir -p /var/lib/aleph/vm/jailer

# Systemd is absent from containers
Expand Down
3 changes: 2 additions & 1 deletion packaging/aleph-vm/DEBIAN/postrm
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
set -euf -o pipefail

rm -r /srv/jailer
rm -fr /srv/jailer # Upgrade from < 0.1.11
rm -fr /tmp/aleph/ # Upgrade from < 0.1.11
rm -r /var/lib/aleph/vm/jailer

systemctl daemon-reload