commit | a3dbe373dfde7db7252226e4efe2d8fc8fb64129 | [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 20:09:26 2015 +0000 |
tree | dd96738d4550c8f0d943976849a8d870aa9f9089 | |
parent | e8d2b6ec60a187184a2902a0a55fc9a0b7e183c5 [diff] |
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