Skip to content

Commit

Permalink
sudo for chown
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinschumacher committed Feb 4, 2019
1 parent 2603103 commit df7154b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ function build_data_structure {
create_zigbee2mqtt_config
fi

chown 1883:1883 data/mqtt
chown -R 1883:1883 data/mqtt/*
chown 1001:1001 data/nodered
chown -Rf 1001:1001 data/nodered/*
sudo chown 1883:1883 data/mqtt
sudo chown -R 1883:1883 data/mqtt/*
sudo chown 1001:1001 data/nodered
sudo chown -Rf 1001:1001 data/nodered/*
}

function detect_arch {
Expand All @@ -82,6 +82,7 @@ function detect_arch {
fi
}


function check_dependencies {
if ! [ -x "$(command -v docker-compose)" ]; then
echo 'Error: docker-compose is not installed.' >&2
Expand Down

0 comments on commit df7154b

Please sign in to comment.