Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Timothee Gosselin
compose.libre.sh
Commits
a2ffe2d9
Commit
a2ffe2d9
authored
10 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Make clearer the need for root access.
parent
632afe7c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
scripts/create_vultr.sh
+1
-0
1 addition, 0 deletions
scripts/create_vultr.sh
scripts/destroy_vultr.sh
+3
-0
3 additions, 0 deletions
scripts/destroy_vultr.sh
scripts/start.sh
+1
-0
1 addition, 0 deletions
scripts/start.sh
with
7 additions
and
2 deletions
README.md
+
2
−
2
View file @
a2ffe2d9
...
...
@@ -19,7 +19,7 @@ There is a script that provision 2 VMs on Vutlr for tests purpose.
```
export VULTR_API_KEY=
./scripts/start.sh
#need root access to modify your /etc/hosts
./scripts/start.sh
ssh root@server.test
cd /data/indiehosters
./tests/start.sh
...
...
@@ -28,7 +28,7 @@ reboot
ssh root@server.test
./tests/stop.sh
exit
./scripts/stop.sh
#need root access to modify your /etc/hosts
./scripts/stop.sh
```
Most of the tests are "visual", but by reading them, it gives you an idea on how to start and stop services.
...
...
This diff is collapsed.
Click to expand it.
scripts/create_vultr.sh
+
1
−
0
View file @
a2ffe2d9
...
...
@@ -37,6 +37,7 @@ do
fi
done
echo
Writing
$LABEL
to /etc/hosts file, needs your root password:
sudo
--
sh
-c
"echo
$IP
$LABEL
\#
$SUBID
>> /etc/hosts"
while
:
...
...
This diff is collapsed.
Click to expand it.
scripts/destroy_vultr.sh
+
3
−
0
View file @
a2ffe2d9
...
...
@@ -2,6 +2,9 @@
LABEL
=
$1
SUBID
=
`
cat
/etc/hosts |
grep
$LABEL
|
cut
-d
# -f2`
echo
Writing
$LABEL
to /etc/hosts file, needs your root password:
sudo sed
-i
"/
$LABEL
/ d"
/etc/hosts
curl
-d
SUBID
=
$SUBID
https://api.vultr.com/v1/server/destroy
\?
api_key
\=
$VULTR_API_KEY
This diff is collapsed.
Click to expand it.
scripts/start.sh
+
1
−
0
View file @
a2ffe2d9
...
...
@@ -25,6 +25,7 @@ echo "We'll now modify your /etc/hosts to add the test application name"
applications
=(
`
cat
$ROOT_DIR
/SUPPORTED_APPLICATIONS
`
)
for
application
in
"
${
applications
[@]
}
"
do
echo
Writing
$LABEL
to /etc/hosts file, needs your root password:
sudo
--
sh
-c
"echo
$IP
$application
.test >> /etc/hosts"
done
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