Skip to content

Commit

Permalink
Fix: Package postrm/postinst failed if directory was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed Mar 31, 2022
1 parent 6535c7a commit 1073fbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit 1073fbf

Please sign in to comment.