Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
3f74eb31
Unverified
Commit
3f74eb31
authored
May 26, 2022
by
Samruddhi Khandale
Committed by
GitHub
May 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix php: add missing $ (#28)
* fix php: add missing $ * test fix * fix user
parent
2d5ba904
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
install.sh
src/php/install.sh
+6
-4
No files found.
src/php/install.sh
View file @
3f74eb31
...
...
@@ -28,7 +28,7 @@ rm -f /etc/profile.d/00-restore-env.sh
echo
"export PATH=
${
PATH
//
$(
sh
-lc
'echo $PATH'
)
/\
$PATH
}
"
>
/etc/profile.d/00-restore-env.sh
chmod
+x /etc/profile.d/00-restore-env.sh
#
Determine the appropriate non-root user
#
If in automatic mode, determine if a user already exists, if not use vscode
if
[
"
${
USERNAME
}
"
=
"auto"
]
||
[
"
${
USERNAME
}
"
=
"automatic"
]
;
then
USERNAME
=
""
POSSIBLE_USERS
=(
"vscode"
"node"
"codespace"
"
$(
awk
-v
val
=
1000
-F
":"
'$3==val{print $1}'
/etc/passwd
)
"
)
...
...
@@ -39,10 +39,12 @@ if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then
fi
done
if
[
"
${
USERNAME
}
"
=
""
]
;
then
USERNAME
=
root
USERNAME
=
vscode
fi
elif
[
"
${
USERNAME
}
"
=
"none"
]
||
!
id
-u
${
USERNAME
}
>
/dev/null 2>&1
;
then
elif
[
"
${
USERNAME
}
"
=
"none"
]
;
then
USERNAME
=
root
USER_UID
=
0
USER_GID
=
0
fi
architecture
=
"
$(
uname
-m
)
"
...
...
@@ -157,7 +159,7 @@ if ! php --version &> /dev/null ; then
# Install xdebug
pecl
install
xdebug
XDEBUG_INI
=
"
$CONF_DIR
/xdebug.ini"
echo
"zend_extension=
$(
find PHP_EXT_DIR
-name
xdebug.so
)
"
>
XDEBUG_INI
echo
"zend_extension=
$(
find
$
PHP_EXT_DIR
-name
xdebug.so
)
"
>
XDEBUG_INI
echo
"xdebug.mode = debug"
>>
XDEBUG_INI
echo
"xdebug.start_with_request = yes"
>>
XDEBUG_INI
echo
"xdebug.client_port = 9003"
>>
XDEBUG_INI
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment