Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The config-capture command doesn't fully work when config is deleted #202

Open
banoodle opened this issue Sep 16, 2024 · 1 comment
Open

Comments

@banoodle
Copy link
Contributor

I just deleted some fields and config-capture only captured updated yamls but not the deleted ones.

@thejimbirch
Copy link
Contributor

thejimbirch commented Sep 16, 2024

should delete your config folder before the rsync?

# Sync the files down.
echo -e "Sync the files down"
fin terminus rsync ${hostingsite}.${ENVIRONMENT}:files/private/config-capture-${var_date}/ ./config

# ADD THIS
# Delete the config folder.
rm -rf ./config

# Reset permissions on the sync'd files.
echo -e "Reset permissions on changed files"
find ./config/ -type f | xargs chmod 644

# Show the differences.
echo -e "Here are the differences:"
git status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants