commit | dd7a2795e8d6086cc55e516830e1da92c7407c68 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Fri Sep 18 00:19:40 2015 -0700 |
committer | Brian O'Connor <bocon@onlab.us> | Fri Sep 18 14:54:43 2015 -0700 |
tree | b34bd1dc1bb8bec685f9a260efa507df3daac04c | |
parent | ac322441f3338109e75aa4cc7fb5af6b29f229ff [diff] [blame] |
Adding deb/postrm to recreate /opt if it is removed by dpkg Change-Id: Ic52fd90ab4726c88e395da3621f392d5155866d8
diff --git a/tools/package/deb/postrm b/tools/package/deb/postrm new file mode 100755 index 0000000..90dd616 --- /dev/null +++ b/tools/package/deb/postrm
@@ -0,0 +1,5 @@ +#!/bin/bash + +# FIXME dpkg will remove /opt if it is empty after removing onos +# We should recreate /opt if it was deleted. +sudo mkdir -p /opt