summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes/usr/local/bin/tails-delete-persistent-volume
blob: 965bbb62653caadf5b5b89877391b6b2848bcd63 (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"
gksudo -u "$RUN_AS_USER" "/usr/bin/tails-persistence-setup --step delete"
xhost -SI:localuser:"$RUN_AS_USER"