Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 0790cbd115107029719de67e0362cec4 > scriptlet

gallery2-2.3.1-3.fc15.noarch.rpm

POSTIN

/bin/sh
if [[ -f /usr/share/gallery2/config.php.rpmnew ]]
then
	echo Your old configuration file \(config.php\) has not been replaced.
	echo Please move it to /etc/gallery2/config.php and rename the
	echo config.php.rpmnew symlink to config.php.
fi
if [[ -f /usr/share/gallery2/config.php.rpmsave ]]
then
	echo Please ensure your /etc/gallery2/config.php file has the correct
	echo contents, and the /usr/share/gallery2/config.php symlink is
	echo pointed to it.
fi
echo If this is an upgrade from a previously installed version of Gallery2,
echo please be sure to point a web browser at http://\<hostname\>/gallery2/upgrade/
echo and follow the instructions there to complete the upgrade process.

if [ -d /usr/share/gallery2/lib/smarty -a ! -L /usr/share/gallery2/lib/smarty ]; then
    mv /usr/share/gallery2/lib/smarty /usr/share/gallery2/lib/smarty.rpmbak && \
    ln -s ../../php/Smarty /usr/share/gallery2/lib/smarty && \
    rm -rf /usr/share/gallery2/lib/smarty.rpmbak
fi 
if [ ! -L /usr/share/gallery2/lib/smarty ]; then
  ln -s ../../php/Smarty /usr/share/gallery2/lib/smarty
fi