Skip to content

Commit

Permalink
Update script.sh (add chmod for user in group docker)
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer authored Feb 21, 2024
1 parent 8b69742 commit 6d57503
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions testing/cloud_layouts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -853,16 +853,12 @@ function parse_master_ip_from_log() {
}

function chmod_dirs_for_cleanup() {
chmod 666 -R "$cwd"
chmod 666 -R /tmp
# chmod 777 -R "$(pwd)/testing"
# chmod 777 -R "/deckhouse/testing"
echo "chmod for dirs Success"

# chown 1000:1000 -R "$(pwd)/testing"
# chown 1000:1000 -R "/deckhouse/testing"
# chown 1000:1000 -R /tmp
# echo "chmod for dirs Success"
USER_DOCKER=$(id $(grep docker /etc/group | awk -F':' '{print $4}') -u)
chown $USER_DOCKER:$USER_DOCKER -R "/deckhouse/testing"
chown $USER_DOCKER:$USER_DOCKER -R "/tmp"
chmod 755 -R "/deckhouse/testing"
chmod 755 -R /tmp
echo "Rights and owner changed"
}


Expand Down

0 comments on commit 6d57503

Please sign in to comment.