Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LakeDropsDrupalDev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
LakeDropsDrupalDev
Commits
b148ff92
Commit
b148ff92
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Remove debug code
Set write permissions for group after initial composer command
parent
a7552d65
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
l3dComposer.php
+0
-5
0 additions, 5 deletions
l3dComposer.php
start.sh
+7
-1
7 additions, 1 deletion
start.sh
with
7 additions
and
6 deletions
l3dComposer.php
+
0
−
5
View file @
b148ff92
...
...
@@ -11,15 +11,10 @@ function loadEarly($items) {
}
}
print
(
"a1"
);
if
(
file_exists
(
'composer.json'
))
{
print
(
"a2"
);
$composer
=
json_decode
(
file_get_contents
(
'composer.json'
),
TRUE
);
print
(
"a2n"
);
if
(
isset
(
$composer
[
'extra'
][
'l3d'
]))
{
print
(
"a3"
);
foreach
(
$composer
[
'extra'
][
'l3d'
]
as
$type
=>
$args
)
{
print
(
"a4: "
.
$type
);
if
(
$type
===
'load-early'
)
{
loadEarly
(
$args
);
}
...
...
This diff is collapsed.
Click to expand it.
start.sh
+
7
−
1
View file @
b148ff92
...
...
@@ -4,6 +4,10 @@ function l3dComposer {
php /usr/local/bin/.l3dComposer.php
}
function
permissions
{
chmod
-R
g+w
.
}
function
readEnv
{
if
[[
-f
".env"
]]
;
then
# shellcheck disable=SC2046
...
...
@@ -43,6 +47,7 @@ function create {
composer create-project
"
${
PROJECT
}
"
./
--no-interaction
fi
l3dComposer
permissions
restoreEnvFile
if
[[
-f
"docker-compose.yml"
]]
;
then
...
...
@@ -95,7 +100,8 @@ function clone {
truncateCurrentDirectory
git clone
"
${
REPOSITORY
}
"
.
l3dComposer
composer update
composer create-project
permissions
restoreEnvFile
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment