#!/bin/sh

ldconfig

if [ ! -f /root/.phconfig ]
  then
    echo "Placing the copy of \".phconfig\" with default values to /root/ for daemon."
    cp /usr/share/libpeerhood/.phconfig /root/.
fi

if [ ! -f /home/user/.phconfig ]
  then
    echo "Placing the copy of \".phconfig\" with default values to /home/user/ for regular user."
    cp /usr/share/libpeerhood/.phconfig /home/user/.
    chown user /home/user/.phconfig
fi

exit 0
