aboutsummaryrefslogtreecommitdiff
path: root/network/vivaldi/douninst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/vivaldi/douninst.sh')
-rw-r--r--network/vivaldi/douninst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/network/vivaldi/douninst.sh b/network/vivaldi/douninst.sh
new file mode 100644
index 0000000000000..2ab916b6dfcac
--- /dev/null
+++ b/network/vivaldi/douninst.sh
@@ -0,0 +1,9 @@
+# Remove any lib fetched by update-ffmpeg, when doinst.sh was first run
+if ls /var/opt/vivaldi/media-codecs-*/libffmpeg.so >/dev/null 2>&1; then
+ rm /var/opt/vivaldi/media-codecs-*/libffmpeg.so
+fi
+if [ -d /var/opt/vivaldi ]; then
+ # This removes directory trees that are empty or only populated by other
+ # empty directories.
+ find /var/opt/vivaldi -depth -type d -empty -exec rmdir {} \;
+fi