Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > contrib > by-pkgid > 99df0e70565efaafd6b233fd9f257087 > scriptlet

asp-not_lyc_demo_noswf-1.0.0-5mdk.noarch.rpm

PREIN

/bin/sh
# if mysqld is not running, start it
echo "Check if mysqld is running"
if ! test -f /var/lib/mysql/mysql.sock
then /sbin/service mysql start
sleep 2
fi

PREUN

/bin/sh
# if mysqld is not running, start it
echo "Check if mysqld is running"
if ! test -f /var/lib/mysql/mysql.sock
then /sbin/service mysql start
sleep 2
fi

POSTIN

/bin/sh
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

/usr/bin/mysqladmin create NotionsLyc
/usr/bin/mysql NotionsLyc < /var/www/html/Asp/Data/Base/notions_lyc"_clip.sql"
/usr/bin/mysql NotionsLyc < /var/www/html/Asp/Data/Base/notions_lyc"_glossary.sql"
/usr/bin/mysql NotionsLyc < /var/www/html/Asp/Data/Base/notions_lyc"_image.sql"
/usr/bin/mysql NotionsLyc < /var/www/html/Asp/Data/Base/notions_lyc"_level.sql"
/usr/bin/mysql NotionsLyc < /var/www/html/Asp/Data/Base/notions_lyc"_link.sql"
/usr/bin/mysql NotionsLyc < /var/www/html/Asp/Data/Base/notions_lyc"_sheet.sql"
/usr/bin/mysql NotionsLyc < /var/www/html/Asp/Data/Base/notions_lyc"_test.sql"
rm /var/www/html/Asp/Data/Base/{notions_lyc"_clip",notions_lyc"_glossary",notions_lyc"_image",notions_lyc"_level"}.sql
rm /var/www/html/Asp/Data/Base/{notions_lyc"_link",notions_lyc"_sheet",notions_lyc"_test"}.sql

POSTUN

/bin/sh
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi 

/usr/bin/mysqladmin --force drop NotionsLyc