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

Install apps via env var for initial setup #1259

Closed
wants to merge 2 commits into from

Conversation

mgerhardy
Copy link
Contributor

@mgerhardy mgerhardy commented Oct 5, 2020

@andrewgosselin-nt
Copy link

I am currently running this in my entrypoint, I hope this gets pushed soon as without this feature the auto deployment of apps is hard.

@@ -168,6 +168,12 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
NC_TRUSTED_DOMAIN_IDX=$(($NC_TRUSTED_DOMAIN_IDX+1))
done
fi
if [ -n "${NEXTCLOUD_INSTALL_APPS+x}" ]; then
echo "Install apps…"
echo "$NEXTCLOUD_INSTALL_APPS" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | tr " " \\n | while read APP; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks with multiple spaces. I guess a comma separated list would be much easier

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as i can see this only affects apps which have Space in their name... Does this really happen?

I'd be willing to contribute an implementation which parses a comma separated list, everything that needs to happen to get this PR in as soon as possible! 🚀 :)

Copy link

@AbcSxyZ AbcSxyZ Oct 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you consider PR #1260 ? Would be great to have a more flexible way to configure Nextcloud for the automatic installation.

At Nextcloud (you're working there ?), did you think about enabling all options for autoconfig.php ? Would it be possible to enable more configuration variables there ?

It would be a great thing to have a way to automate the entire installation !

Edit: See Synapse (matrix server) who deprecated env var for burden maintenance and support install only through passing config files.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AbcSxyZ I agree with you, custom script provided by Docker Config or Docker Volume will give more possibility like enabling encryption right after installation for example or even after upgrade process.

@J0WI any thoughts ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think I'll prefer #1260

@J0WI
Copy link
Contributor

J0WI commented Jun 22, 2023

Closing in favour of #1964.

@J0WI J0WI closed this Jun 22, 2023
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.

6 participants