"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "builds/install/arch-specific/darwin/install-script" between
Firebird-3.0.2.32703-0.tar.bz2 and Firebird-3.0.4.33054-0.tar.bz2

About: Firebird is a relational database offering many ANSI SQL standard features.

install-script  (Firebird-3.0.2.32703-0.tar.bz2):install-script  (Firebird-3.0.4.33054-0.tar.bz2)
skipping to change at line 74 skipping to change at line 74
if [ -x /sbin/service ]; then if [ -x /sbin/service ]; then
service firebird stop service firebird stop
fi fi
# Install the framework # Install the framework
echo "Install the framework" echo "Install the framework"
chown -R firebird:firebird "$FB_FW" chown -R firebird:firebird "$FB_FW"
# set the permissions correctly # set the permissions correctly
echo "Set the permissions correctly" echo "Set the permissions correctly"
if [ -f "$FB_FW/Versions/A/Resources/.SuperServer" ]; then chmod 777 "$FB_FW/Resources/"
chmod 777 "$FB_FW/Resources/English.lproj/var" chmod 660 "$FB_FW/Resources/security3.fdb"
chmod 600 "$FB_FW/Resources/English.lproj/var/security2.fdb" chmod 444 "$FB_FW/Resources/help/help.fdb"
chmod 444 "$FB_FW/Resources/English.lproj/var/help/help.fdb" chmod a+s "$FB_FW/Resources/bin/firebird"
else
chmod 777 "$FB_FW/Resources/English.lproj/var"
chmod 660 "$FB_FW/Resources/English.lproj/var/security2.fdb"
chmod 444 "$FB_FW/Resources/English.lproj/var/help/help.fdb"
chmod a+s "$FB_FW/Resources/bin/fb_inet_server"
fi
# Remove all older traces of Classic first # Remove all older traces of Classic first
echo "Remove all older traces of Classic first" echo "Remove all older traces of Classic first"
if [ -f /etc/inetd.conf ]; then if [ -f /etc/inetd.conf ]; then
grep -s gds_db /etc/inetd.conf > /dev/null 2>&1 grep -s gds_db /etc/inetd.conf > /dev/null 2>&1
if test $? != 0 ; then if test $? != 0 ; then
cat /etc/inetd.conf | grep -v gds_db > /etc/.firebird.temp.instal l.inetd.conf cat /etc/inetd.conf | grep -v gds_db > /etc/.firebird.temp.instal l.inetd.conf
mv /etc/.firebird.temp.install.inetd.conf /etc/inetd.conf mv /etc/.firebird.temp.install.inetd.conf /etc/inetd.conf
HUPNEEDED='y' HUPNEEDED='y'
fi fi
skipping to change at line 116 skipping to change at line 110
echo -n echo -n
else else
echo "localhost" >> /etc/hosts.equiv echo "localhost" >> /etc/hosts.equiv
fi fi
if grep -x "localhost.localdomain" /etc/hosts.equiv > /dev/null; then if grep -x "localhost.localdomain" /etc/hosts.equiv > /dev/null; then
echo -n echo -n
else else
echo "localhost.localdomain" >> /etc/hosts.equiv echo "localhost.localdomain" >> /etc/hosts.equiv
fi fi
# Install the saved security2 database, if any
echo "Install the saved security2 database"
if test -f /tmp/fb-security-database-update2fdb; then
mv -f /tmp/fb-security-database-update2.fdb "$FB_RES/security2.fdb"
fi
# Install the saved security database, if any # Install the saved security database, if any
echo "Install the saved security database" echo "Install the saved security database"
if test -f /tmp/fb-security-database-update2.fdb; then if test -f /tmp/fb-security-database-update3.fdb; then
mv -f /tmp/fb-security-database-update2.fdb "$FB_RES/English.lproj/var/se mv -f /tmp/fb-security-database-update3.fdb "$FB_RES/security3.fdb"
curity2.fdb" rm -f /tmp/fb-security-database-update3.fdb
rm -f /tmp/fb-security-database-update2.fdb
fi fi
#Install the saved aliases.conf, if any #Install the saved aliases.conf, if any
echo "Install the saved aliases.conf file" echo "Install the saved aliases.conf file"
if test -f /tmp/fb-aliases.conf; then if test -f /tmp/fb-aliases.conf; then
mv -f /tmp/fb-aliases.conf "$FB_RES/English.lproj/var/aliases.conf" mv -f /tmp/fb-aliases.conf "$FB_RES/English.lproj/var/aliases.conf"
fi fi
#Install the saved databases.conf, if any
echo "Install the saved databases.conf file"
if test -f /tmp/fb-databases.conf; then
mv -f /tmp/fb-databases.conf "$FB_RES/databases.conf"
fi
#Install the saved UDF libraries, if any #Install the saved UDF libraries, if any
echo "Install the saved UDF libraries" echo "Install the saved UDF libraries"
cp /tmp/UDF_Save/*.* $FB_RES/English.lproj/var/UDF/ cp /tmp/UDF_Save/*.* $FB_RES/UDF/
rm -fr /tmp/UDF_save rm -fr /tmp/UDF_save
#If classic, add libfbclient to dynamic loader search path # Test for saved security database
echo "Add libfbclient to dynamic loader search path" if test -f "$FB_FW/Versions/A/Resources/security2.fdb"; then
if [ ! -f "$FB_FW/Versions/A/Resources/.SuperServer" ]; then echo "Legacy 2.x Security database has been preserved"
ln -s "$FB_FW/Libraries/libfbclient.dylib" /usr/local/lib/libfbclient.dyl fi
ib
if test -f "$FB_FW/Versions/A/Resources/security3.fdb"; then
echo "Security database has been preserved"
fi fi
# And last but not least, start the Servers # Initilise the security database with default user
echo "Start the Servers via launchctl" echo "Add SYSDBA and password"
$FB_FW/Versions/A/Resources/bin/gsec -add sysdba -pw masterkey -user sysdba
rm -fr /tmp/firebird
# And last but not least, start the Server
echo "Start the Server via launchctl"
cp $FB_FW/Resources/org.firebird.gds.plist /Library/LaunchDaemons/org.firebird.g ds.plist cp $FB_FW/Resources/org.firebird.gds.plist /Library/LaunchDaemons/org.firebird.g ds.plist
launchctl load /Library/LaunchDaemons/org.firebird.gds.plist launchctl load /Library/LaunchDaemons/org.firebird.gds.plist
 End of changes. 7 change blocks. 
22 lines changed or deleted 33 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)