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

Stop using quoted vars #299

Closed
wants to merge 1 commit into from
Closed

Stop using quoted vars #299

wants to merge 1 commit into from

Conversation

sevein
Copy link
Member

@sevein sevein commented Feb 24, 2021

This should allow to keep using export without warnings, e.g. our
archivematica.spec is doing the following:

export $(cat /etc/sysconfig/archivematica-dashboard)

Is this the right thing to do or we have better options?

Connects to #268.
Related: 551fe3a.

This should allow to keep using export without warnings, e.g. our
`archivematica.spec` is doing the following:

    export $(cat /etc/sysconfig/archivematica-dashboard)
@sevein
Copy link
Member Author

sevein commented Feb 24, 2021

CC @uofmsean - is this the fix you were expecting? I haven't been able to reproduce the warning.

@uofmsean
Copy link

In reference to #268, the problem is that /etc/sysconfig/archivematica-dashboard needs to be able to specify variables with spaces in them (such as ARCHIVEMATICA_DASHBOARD_EMAIL_SUBJECT_PREFIX) and should also allow for comment lines starting with #. Using "export $(cat /etc/sysconfig/archivematica-dashboard)" doesn't handle those cases cleanly whereas the file is correctly sourced by /usr/lib/systemd/system/archivematica-dashboard.service with the EnvironmentFile parameter. I would expect that whatever works for systemd should also work for install scripts. The same would apply to the other sysconfig files and systemd unit files.

@sevein sevein added the Status: in progress Issue that is currently being worked on. Waffle label. label Feb 24, 2021
@sevein sevein closed this Apr 22, 2021
@qubot qubot removed the Status: in progress Issue that is currently being worked on. Waffle label. label Apr 22, 2021
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.

3 participants