#!/bin/bash
# SimpleMessageKeeper (C) 2017 Stephane Charette <stephanecharette@gmail.com>
# $Id: CMakeLists.txt 2110 2017-01-17 10:53:29Z stephane $


echo "Postinst: $@"

json="/opt/ccr/smk.json"

# create the directory and initialize the file if it doesn't yet exist
mkdir -p $(dirname ${json})
if [ ! -e ${json} ]; then
	touch ${json}
	chmod a+rw ${json}
	smk reset
fi


exit 0
