updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / kfs-svn / kfs.install
blob054028110dac76f6a85b489367f8a1c01eb74987
1 post_install() {
2         for src in /etc/conf.d/kfs.default /etc/kfs.conf.default /etc/kfswebui.conf.default; do
3                 dest=$( echo $src | sed 's|\.default||' )
4                 if [ -f $dest ]; then
5                         diff $src $dest > /dev/null 2>/dev/null
6                         ret=$?
7                         
8                         if [ $ret -ne 0 ]; then
9                                 echo ">>> Not updating $dest - it exists and is different than $src. Please check if it needs to be modified."
10                         fi
11                 else
12                         echo ">>> Copying $src to $dest"
13                         cp $src $dest
14                 fi
15          done
18 post_upgrade() {
19         post_install