Browse Source

Fix up sed script

master
nolim1t 5 years ago
parent
commit
0878cfe242
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 4
      stage2/04-docker-compose/files/compose-service

4
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

Loading…
Cancel
Save