summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes/usr/local/bin/tails-delete-persistent-volume
blob: 75b89447fd3a657a79fb1a789ca7f2a95de97c00 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

set -e

RUN_AS_USER=tails-persistence-setup

xhost +SI:localuser:"$RUN_AS_USER"
sudo -u "$RUN_AS_USER" /usr/bin/tails-persistence-setup --step delete $@
xhost -SI:localuser:"$RUN_AS_USER"