nolim1t
5 years ago
No known key found for this signature in database
GPG Key ID: F6287B82CC84BCBD
1 changed files with
2 additions and
2 deletions
-
stage2/04-docker-compose/files/compose-service
|
|
@ -20,7 +20,7 @@ SCRIPTNAME=/etc/init.d/$NAME |
|
|
|
case "$1" in |
|
|
|
start) |
|
|
|
if [[ -f /home/umbrel/docker-compose.yml ]]; then |
|
|
|
sed 's/\${HOME}/\/home\/umbrel/g; ' /home/umbrel/docker-compose.yml > /home/umbrel/docker-compose.yml |
|
|
|
sed -i 's/\${HOME}/\/home\/umbrel/g; ' /home/umbrel/docker-compose.yml |
|
|
|
echo "Starting" |
|
|
|
cd /home/umbrel |
|
|
|
docker-compose up -d |
|
|
@ -32,7 +32,7 @@ case "$1" in |
|
|
|
;; |
|
|
|
stop) |
|
|
|
if [[ -f /home/umbrel/docker-compose.yml ]]; then |
|
|
|
sed 's/\${HOME}/\/home\/umbrel/g; ' /home/umbrel/docker-compose.yml > /home/umbrel/docker-compose.yml |
|
|
|
sed -i 's/\${HOME}/\/home\/umbrel/g; ' /home/umbrel/docker-compose.yml |
|
|
|
echo "Stopping docker" |
|
|
|
cd /home/umbrel |
|
|
|
docker-compose down |
|
|
|