diff --git a/config/hooks/live/0200-seafile.hook.chroot b/config/hooks/live/0200-seafile.hook.chroot
index 6a0d5bf..ba34d6d 100755
--- a/config/hooks/live/0200-seafile.hook.chroot
+++ b/config/hooks/live/0200-seafile.hook.chroot
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -e
+
 wget https://linux-clients.seafile.com/seafile.asc -O /usr/share/keyrings/seafile-keyring.asc
 echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/seafile-keyring.asc] https://linux-clients.seafile.com/seafile-deb/bullseye/ stable main' > /etc/apt/sources.list.d/seafile.list