19 lines
527 B
Bash
Executable File
19 lines
527 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Fix ownership of all git repositories created by Docker
|
|
# This script should be run after attaching repositories
|
|
|
|
GIT_REPO_DIR="/home/tech4biz/Desktop/today work/git-repo"
|
|
GIT_DIFF_DIR="/home/tech4biz/Desktop/today work/git-diff"
|
|
|
|
echo "Fixing ownership of git-repo directory..."
|
|
sudo chown -R tech4biz:tech4biz "$GIT_REPO_DIR"
|
|
|
|
echo "Fixing ownership of git-diff directory..."
|
|
sudo chown -R tech4biz:tech4biz "$GIT_DIFF_DIR"
|
|
|
|
echo "✅ All permissions fixed!"
|
|
echo "Repository folders:"
|
|
ls -la "$GIT_REPO_DIR"
|
|
|