(bash) update permissions in zima setup

This commit is contained in:
jc 2024-08-20 17:34:56 -04:00
commit 8c94d34367

View file

@ -40,7 +40,7 @@ groupadd $DOTFILES_GROUP
# update dotfiles repo permissions and ownership # update dotfiles repo permissions and ownership
chown -R "root:$DOTFILES_GROUP" "$DOTFILES_DIR" chown -R "root:$DOTFILES_GROUP" "$DOTFILES_DIR"
chmod 0775 "$DOTFILES_DIR" chmod 0775 "$DOTFILES_DIR"
find "$DOTFILES_DIR" -type f -exec chmod 0665 {} \; find "$DOTFILES_DIR" -type f -exec chmod 0664 {} \;
find "$DOTFILES_DIR" -type d -exec chmod 0775 {} \; find "$DOTFILES_DIR" -type d -exec chmod 0775 {} \;
# create ghq directory # create ghq directory
@ -53,7 +53,7 @@ GHQ_GROUP=ghq
groupadd "$GHQ_GROUP" groupadd "$GHQ_GROUP"
chown -R "root:$GHQ_GROUP" "$GHQ_DIR" chown -R "root:$GHQ_GROUP" "$GHQ_DIR"
chmod 0775 "$GHQ_DIR" chmod 0775 "$GHQ_DIR"
find "$GHQ_DIR" -type f -exec chmod 0665 {} \; find "$GHQ_DIR" -type f -exec chmod 0664 {} \;
find "$GHQ_DIR" -type d -exec chmod 0775 {} \; find "$GHQ_DIR" -type d -exec chmod 0775 {} \;
# create user developer, gain access to rust, nvm, go directories # create user developer, gain access to rust, nvm, go directories
@ -119,7 +119,7 @@ if [ -z "$NVM_DIR" ]; then
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh" ) && \. "$NVM_DIR/nvm.sh"
chown -R "$DEV_USER:$DEV_GROUP" "$NVM_DIR" chown -R "$DEV_USER:$DEV_GROUP" "$NVM_DIR"
find "$NVM_DIR" -type f -exec chmod 0665 {} \; find "$NVM_DIR" -type f -exec chmod 0664 {} \;
find "$NVM_DIR" -type d -exec chmod 0775 {} \; find "$NVM_DIR" -type d -exec chmod 0775 {} \;
# post installation configuration # post installation configuration
NVM_LINES=' NVM_LINES='