mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-19 11:16:41 +00:00
Fix travis sudo rights
This commit is contained in:
parent
a161e536a7
commit
133680c19c
@ -222,18 +222,6 @@ devilbox_start() {
|
||||
enable_docker_postgres "${_pysql}"
|
||||
enable_docker_php "${_php}"
|
||||
|
||||
# Stop existing dockers
|
||||
cd "${DEVILBOX_PATH}" || exit 1
|
||||
docker-compose down || true
|
||||
docker-compose stop || true
|
||||
docker-compose kill || true
|
||||
docker-compose rm -f || true
|
||||
|
||||
# Delete existing data dirs
|
||||
rm -rf "$( get_default_mount_httpd )"
|
||||
rm -rf "$( get_default_mount_mysql )"
|
||||
rm -rf "$( get_default_mount_postgres )"
|
||||
|
||||
# Run
|
||||
docker-compose up -d
|
||||
|
||||
@ -259,7 +247,7 @@ devilbox_stop() {
|
||||
docker-compose rm -f || true
|
||||
|
||||
# Delete existing data dirs
|
||||
rm -rf "$( get_default_mount_httpd )"
|
||||
rm -rf "$( get_default_mount_mysql )"
|
||||
rm -rf "$( get_default_mount_postgres )"
|
||||
sudo rm -rf "$( get_default_mount_httpd )"
|
||||
sudo rm -rf "$( get_default_mount_mysql )"
|
||||
sudo rm -rf "$( get_default_mount_postgres )"
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
language: python
|
||||
sudo: required
|
||||
python:
|
||||
- 2.7
|
||||
|
||||
@ -24,6 +25,7 @@ before_install:
|
||||
# List versions
|
||||
- docker version
|
||||
- docker-compose version
|
||||
- whoami
|
||||
|
||||
###
|
||||
### Install
|
||||
|
Loading…
Reference in New Issue
Block a user