Skip to content

Commit

Permalink
Fix: Hardened IPFS configuration requires user to exist
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed Sep 26, 2023
1 parent dcec5c0 commit f6880ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packaging/aleph-vm/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mkdir -p /var/lib/aleph/vm/jailer
if ! [[ -v container ]]; then
systemctl daemon-reload
systemctl enable ipfs.service
systemctl restart ipfs.service
systemctl enable aleph-vm-supervisor.service
systemctl restart aleph-vm-supervisor.service
fi
3 changes: 3 additions & 0 deletions packaging/aleph-vm/DEBIAN/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ if ! [[ -v container ]]; then
fi

set -e

addgroup --system ipfs
adduser --system --ingroup ipfs ipfs

0 comments on commit f6880ca

Please sign in to comment.