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
6674889e
Commit
6674889e
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#15
Rename the start script in the repository but keep the name in the container
parent
0b75d92e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
start.sh
+74
-0
74 additions, 0 deletions
start.sh
with
74 additions
and
0 deletions
.
start
→
start
.sh
+
74
−
0
View file @
6674889e
...
...
@@ -26,52 +26,49 @@ function create {
}
EXISTING
=
$(
ls
-1
)
if
[[
-n
"
$EXISTING
"
]]
;
then
restoreEnvFile
exit
fi
echo
"Lets start a new project here ..."
echo
""
echo
"Options to start:"
echo
" 1 LakeDrops Drupal 8 project template"
echo
" 2 Drupal's community project template"
echo
" 3 Existing git repository"
echo
""
echo
""
while
true
;
do
read
-p
"Choose an option: "
OPTION
case
${
OPTION
}
in
if
[[
!
-n
"
$EXISTING
"
]]
;
then
echo
"Lets start a new project here ..."
echo
""
echo
"Options to start:"
echo
" 1 LakeDrops Drupal 8 project template"
echo
" 2 Drupal's community project template"
echo
" 3 Existing git repository"
echo
""
echo
""
1
)
PROJECT
=
"lakedrops/d8-project"
create
break
;;
while
true
;
do
read
-p
"Choose an option: "
OPTION
case
${
OPTION
}
in
2
)
PROJECT
=
"
drupal-composer/drupal-project:8.x-dev
"
create
break
;;
1
)
PROJECT
=
"
lakedrops/d8-project
"
create
break
;;
3
)
read
-p
"Repository URL: "
REPOSITORY
if
[[
-n
"
${
REPOSITORY
}
"
]]
;
then
truncateCurrentDirectory
git clone
${
REPOSITORY
}
.
composer update
restoreEnvFile
2
)
PROJECT
=
"drupal-composer/drupal-project:8.x-dev"
create
break
fi
;;
;;
3
)
read
-p
"Repository URL: "
REPOSITORY
if
[[
-n
"
${
REPOSITORY
}
"
]]
;
then
truncateCurrentDirectory
git clone
${
REPOSITORY
}
.
composer update
restoreEnvFile
break
fi
;;
*
)
echo
"Please try again."
;;
esac
done
*
)
echo
"Please try again."
;;
esac
done
fi
restoreEnvFile
/usr/bin/fish
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