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

fix: Change INSTALL_PREFIX placeholder notation to templating notation #131

Merged
merged 4 commits into from
Dec 13, 2023

Conversation

gerardbosch
Copy link
Contributor

@gerardbosch gerardbosch commented Dec 12, 2023

The former shell notation $INSTALL_PREFIX could result confusing. As
this is a placeholder that's replaced by make, we switch it to a
template notation {{ INSTALL_PREFIX }}.

Also, fixes one occurrence of the placeholder in restic_backup.sh not replaced (was using ${} notation and not replaced by sed).

…tation

The former shell notation `$INSTALL_PREFIX` could result confusing. As
this is a placeholder that's replaced in the `make`, we switch it to a
template notation `{{ INSTALL_PREFIX }}`.
@gerardbosch
Copy link
Contributor Author

gerardbosch commented Dec 12, 2023

Most of the changes are a massive replace of $INSTALL_PREFIX to {{ INSTALL_PREFIX }} as commented here #127 (comment), but I split the PR in atomic commits to ease the review.

EDIT:
I forgot to mention that I tested it by make install-systemd on my real installation. Everything worked fine :) backups, logs and notifications still running.

Makefile Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Co-authored-by: Gerard Bosch <[email protected]>
@erikw erikw merged commit de28285 into erikw:main Dec 13, 2023
1 check passed
@gerardbosch gerardbosch deleted the fix/prefix-template branch December 13, 2023 18:43
gerardbosch added a commit to gerardbosch/restic-automatic-backup-scheduler that referenced this pull request Dec 14, 2023
erikw#131)

* refactor: Change INSTALL_PREFIX placeholder notation to templating notation

The former shell notation `$INSTALL_PREFIX` could result confusing. As
this is a placeholder that's replaced in the `make`, we switch it to a
template notation `{{ INSTALL_PREFIX }}`.

* docs: Small fix on README/manual setup

* docs(email-notif): Document the `{{ INSTALL_PREFIX }}` placeholder

co-authored-by: giuaig <[email protected]>

* Update README.md

Co-authored-by: Gerard Bosch <[email protected]>

---------

Co-authored-by: giuaig <[email protected]>
Co-authored-by: Erik Westrup <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants