mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 09:20:39 +01:00
Frontported fix for CORE-3001: Install fails to create user & group "firebird"
This commit is contained in:
parent
6d417ec95c
commit
747fb1ef70
@ -23,6 +23,19 @@
|
||||
#
|
||||
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# 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
|
||||
|
||||
@ -35,7 +48,9 @@ ArchiveDateTag=`date +"%Y%m%d_%H%M"`
|
||||
export ArchiveDateTag
|
||||
ArchiveMainFile="@FB_CONFDIR@_${ArchiveDateTag}"
|
||||
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...
|
||||
|
Loading…
Reference in New Issue
Block a user