8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Bacpported fix for CORE-3001: Install fails to create user & group "firebird"

This commit is contained in:
alexpeshkoff 2010-05-11 12:03:16 +00:00
parent 25890ea4fa
commit 428f58b877

View File

@ -1,6 +1,19 @@
#!/bin/sh #!/bin/sh
#------------------------------------------------------------------------
# Adds parameter to $PATH if it's missing in it
Add2Path() {
Dir=${1}
x=`echo :${PATH}: | grep :$Dir:`
if [ -z "$x" ]
then
PATH=$PATH:$Dir
export PATH
fi
}
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# Global stuff init # Global stuff init
@ -16,7 +29,9 @@ ArchiveDateTag=`date +"%Y%m%d_%H%M"`
export ArchiveDateTag export ArchiveDateTag
ArchiveMainFile="${FBRootDir}_${ArchiveDateTag}" ArchiveMainFile="${FBRootDir}_${ArchiveDateTag}"
export ArchiveMainFile export ArchiveMainFile
#this solves a problem with sudo env missing sbin
Add2Path /usr/sbin
Add2Path /sbin
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# Create temporary file. In case mktemp failed, do something... # Create temporary file. In case mktemp failed, do something...