mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
localize install_template variables
This commit is contained in:
parent
cd8f3c1aa4
commit
2e72bd67f0
@ -27,9 +27,9 @@ exec_as_git() {
|
||||
# $2: source file
|
||||
# $3: destination location
|
||||
install_template() {
|
||||
USR=${1}
|
||||
SRC=${2}
|
||||
DEST=${3}
|
||||
local USR=${1}
|
||||
local SRC=${2}
|
||||
local DEST=${3}
|
||||
if [[ -f ${USERCONF_TEMPLATES_DIR}/${SRC} ]]; then
|
||||
sudo -HEu ${USR} cp ${USERCONF_TEMPLATES_DIR}/${SRC} ${DEST}
|
||||
elif [[ -f ${SYSCONF_TEMPLATES_DIR}/${SRC} ]]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user