8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 15:23:03 +01:00
firebird-mirror/builds/install/arch-specific/linux/super/preuninstall.sh.in

28 lines
486 B
Bash

#! /bin/sh
#= Main PreUn ================================================================
stopSuperServerIfRunning
cd $FBRootDir
if [ -f $SecurityDatabase ]
then
cp $SecurityDatabase /tmp
echo "Saved a copy of SecurityDatabase ($SecurityDatabase) in /tmp"
chown root:root /tmp/$SecurityDatabase
chmod 0600 /tmp/$SecurityDatabase
fi
for i in isc_*1* firebird.log SYSDBA.password
do
if [ -f $i ]
then
rm -f $i
fi
done
rm -f $FBBin/fbmgr