chown -R $SUDO_USER %{_rpmdir}/%{_arch}
fi
+%pre
+if [ -x %{_sysconfdir}/init.d/plc ] ; then
+ service plc stop
+fi
+
%post
chkconfig --add plc
chkconfig plc on
/plc/root
# Data directory
-%dir %config(noreplace) /plc/data
+%dir /plc/data
+%config(noreplace) /plc/data/*
%changelog
* Wed Apr 5 2006 Mark Huang <mlhuang@CS.Princeton.EDU> - 0.2-1