mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:43:02 +01:00
Bacpported fix for CORE-3001: Install fails to create user & group "firebird"
This commit is contained in:
parent
ec50b7df9b
commit
cbc732f0ad
@ -1,6 +1,19 @@
|
||||
#!/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
|
||||
|
||||
@ -16,7 +29,9 @@ ArchiveDateTag=`date +"%Y%m%d_%H%M"`
|
||||
export ArchiveDateTag
|
||||
ArchiveMainFile="${FBRootDir}_${ArchiveDateTag}.tar.gz"
|
||||
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