Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compose.libre.sh
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
17
Issues
17
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
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
libre.sh
compose.libre.sh
Commits
a2ffe2d9
Commit
a2ffe2d9
authored
Mar 10, 2015
by
Pierre Ozoux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make clearer the need for root access.
parent
632afe7c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
README.md
README.md
+2
-2
scripts/create_vultr.sh
scripts/create_vultr.sh
+1
-0
scripts/destroy_vultr.sh
scripts/destroy_vultr.sh
+3
-0
scripts/start.sh
scripts/start.sh
+1
-0
No files found.
README.md
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.
...
...
scripts/create_vultr.sh
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
:
...
...
scripts/destroy_vultr.sh
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
scripts/start.sh
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
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