Project

General

Profile

Actions

Bug #8413

closed

[Deployment] Rails postinst script apparently messes with /etc/arvados directory tree ownerships

Added by Brett Smith about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Deployment
Target version:
Story points:
0.5

Description

On one system it changed the owning group to root where it should've stayed www-data.


Subtasks 1 (0 open1 closed)

Task #8475: Review arvados-dev branch 8413-fix-rails-postinst-chgrp-wipResolvedNico César02/17/2016Actions
Actions #1

Updated by Brett Smith about 8 years ago

  • Description updated (diff)
Actions #2

Updated by Brett Smith about 8 years ago

  • Target version set to 2016-03-02 sprint
Actions #3

Updated by Brett Smith about 8 years ago

  • Story points set to 0.5
Actions #4

Updated by Brett Smith about 8 years ago

  • Assigned To set to Brett Smith
Actions #5

Updated by Brett Smith about 8 years ago

  • Status changed from New to In Progress
Actions #6

Updated by Nico César about 8 years ago

review @ b6488e3814aea0a97a6912ffb92327030df69e63

LGTM

it got my attention that you switched from logical names to UID/GID
- local ownership="$(stat -c "%U:%G" "$release_conffile")"
+ local ownership="$(stat -c "%u:%g" "$release_conffile")"
was that a safe guard for non-listed users in /etc/groups (a.k.a some docker related problem :) )? this is just curiosity, you should merge

Actions #7

Updated by Brett Smith about 8 years ago

Nico Cesar wrote:

it got my attention that you switched from logical names to UID/GID
- local ownership="$(stat -c "%U:%G" "$release_conffile")"
+ local ownership="$(stat -c "%u:%g" "$release_conffile")"
was that a safe guard for non-listed users in /etc/groups (a.k.a some docker related problem :) )? this is just curiosity, you should merge

It was to make the gid comparison later in the code easier. It was easier to say [ 0 != "$owning_gid" ] than look up the name of GID 0 and compare. Thanks.

Actions #8

Updated by Brett Smith about 8 years ago

  • Status changed from In Progress to Resolved

Applied in changeset arvados-dev|commit:623af8e46e921f59abeeee9e7ae8ec4aef890b5b.

Actions

Also available in: Atom PDF