Skip to content

Install apps via env var for initial setup#1259

Closed
mgerhardy wants to merge 2 commits intonextcloud:masterfrom
mgerhardy:pr/install-apps
Closed

Install apps via env var for initial setup#1259
mgerhardy wants to merge 2 commits intonextcloud:masterfrom
mgerhardy:pr/install-apps

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.

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.

5 participants