documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

Unable to add multiple fonts with shell expansion

Open bovender opened this issue 5 years ago • 2 comments

Trying to add multiple TTF fonts with the occ script:

php occ documentserver:fonts -a /path/to/my/TrueType/IBM-Plex-Sans/*.ttf

This fails with the following message:

Too many arguments, expected arguments "command".

I can add a single TTF font all right, but it's kind of tedious to do this for all IBM Plex fonts...

NC version 18.0.2, documentserver_community: 0.1.5.

Am I doing something wrong, or is it a bug?

bovender avatar Mar 14 '20 05:03 bovender

Just have a look at this comment for bulk uploading fonts in #40 -- old Answer below: No this doesn't seem to be implemented yet. What should work for now is a simple for loop which adds all fonts. for font in /path/to/my/TrueType/IBM-Plex-Sans/*.ttf; do php occ documentserver:fonts -add $font; done don't forget to run the php command as your webservers user to not mess up with your file ownerships.

maexbower avatar Apr 16 '20 15:04 maexbower

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.

github-actions[bot] avatar Apr 22 '24 00:04 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Jun 24 '24 00:06 github-actions[bot]