Verified Commit c25268e7 authored by Michal Hrusecky's avatar Michal Hrusecky 🐉
Browse files

manager: No group in chown

We don't have turris-netboot group, so don't try to make it own data.
parent 5745be7d
......@@ -185,7 +185,7 @@ accept() {
local new_ip=$(netboot-set-static-lease ${1} ${mac} 2>/dev/null)
echo "IP address $new_ip was allocated for ${1} (${mac})"
prepare_client_token "$1" "$new_ip"
chown -R turris-netboot:turris-netboot transfering/$1
chown -R turris-netboot transfering/$1
fi
mv "transfering/$1" "accepted/$1"
......@@ -221,9 +221,9 @@ mkdir -p "$BASE_DIR"
mkdir -p "$BASE_DIR"/accepted
mkdir -p "$BASE_DIR"/incoming
mkdir -p "$BASE_DIR"/transfering
chown turris-netboot:turris-netboot "${BASE_DIR}"/accepted
chown turris-netboot:turris-netboot "${BASE_DIR}"/incoming
chown turris-netboot:turris-netboot "${BASE_DIR}"/transfering
chown turris-netboot "${BASE_DIR}"/accepted
chown turris-netboot "${BASE_DIR}"/incoming
chown turris-netboot "${BASE_DIR}"/transfering
cd "$BASE_DIR"
if [ "x$2" = "x-j" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment