grafana-data.prerm 276 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/sh

set -e

## Directory <=> symlink update
## remove symlinks and empty directories:
Dmitry Smirnov's avatar
Dmitry Smirnov committed
7
D="/usr/share/grafana/public/vendor"
8 9 10 11
if [ -d "$D" ]; then
    find "$D" -xdev -type l -delete
    find "$D" -xdev -type d -empty -delete
    ## -printf 'removed %p\n'
Dmitry Smirnov's avatar
Dmitry Smirnov committed
12
fi
13 14

#DEBHELPER#