Browse Source
Fix up brackets as they don't execute
master
0.0.1.9
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
|
|
@ -19,7 +19,7 @@ SCRIPTNAME=/etc/init.d/$NAME |
|
|
|
|
|
|
|
case "$1" in |
|
|
|
start) |
|
|
|
if [[ -f /home/umbrel/docker-compose.yml ]]; then |
|
|
|
if [ -f /home/umbrel/docker-compose.yml ]; then |
|
|
|
sed -i 's/\${HOME}/\/home\/umbrel/g; ' /home/umbrel/docker-compose.yml |
|
|
|
echo "Starting" |
|
|
|
cd /home/umbrel |
|
|
@ -31,7 +31,7 @@ case "$1" in |
|
|
|
fi |
|
|
|
;; |
|
|
|
stop) |
|
|
|
if [[ -f /home/umbrel/docker-compose.yml ]]; then |
|
|
|
if [ -f /home/umbrel/docker-compose.yml ]; then |
|
|
|
sed -i 's/\${HOME}/\/home\/umbrel/g; ' /home/umbrel/docker-compose.yml |
|
|
|
echo "Stopping docker" |
|
|
|
cd /home/umbrel |
|
|
|