git settings fails on vault
According to: https://homelabos.com/docs/setup/installation/#syncing-settings-via-git
I am supposed to be able to setup a git and have it sync my settings.
I setup gitea and started a repo and then cloned it over the settings directory.
I can add settings.yml, but passwords and vault.yml fail with:
Already up to date.
error: open("vault.yml"): Permission denied
error: unable to index file 'vault.yml'
fatal: updating files failed
error: open("vault.yml"): Permission denied
error: unable to index file 'vault.yml'
fatal: updating files failed
Everything up-to-date
if I add vault.yml and passwords to .gitignore
because I need to be root access to touch them, I get:
The following paths are ignored by one of your .gitignore files:
passwords
vault.yml
Use -f if you really want to add them.
cat: vault.yml: Permission denied
Vault not encrypted! Skipping committing to settings repository. Run 'make config' to encrypt the vault then try again.
This looks to be a pre-commit hook problem.