Closed simonspa closed 4 years ago
I didn't know that. How do you rename nextcloud?
I think the regex would be better like this:
'[^\s]+ \b\w*\b ?([0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}) ?.*',
What are the limitations for the name? If is can only letters/numbers/dashes, we could check for those exactly.
You it via the theming app, where you can also change logo, color etc. I don't really get why they return that name in the command line, but that's what it is.
The name is a completely free text entry field, so it can contain anything.
Thanks for the info. In this case, we could simplify the regex to:
'.* ([0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2})$',
If you agree, let's update the PR and merge it!
Sure, even better. I updated the commit accordingly. :)
Great! Thanks for your contributions so far.
Sure, I'll keep them coming as I move along with my setup - I wholeheartedly agree with your statement in the README that a role shouldn't be doing everything but one thing right...
If the Nextcloud instance is renamed, let's say to
mycloud
, the commandphp occ -V
actualy printsHence, we have to be insensitive to the actual name.