__nextcloud_{app,user}: Updated man cause of __nextcloud changes

Also, the `gencode-remote` scripts where marked executeable.
This commit is contained in:
matze 2020-11-15 19:14:31 +01:00
parent 3fda91ca2f
commit ee650d88ed
4 changed files with 25 additions and 11 deletions

0
type/__nextcloud_app/gencode-remote Normal file → Executable file
View file

View file

@ -75,22 +75,29 @@ EXAMPLES
.. code-block:: sh
# nextcloud base installation
__nextcloud cloud $args
# Nextcloud base installation
__nextcloud /var/www/html/cloud $args
# install the music app
require="__nextcloud/cloud" __nextcloud_app music \
require="__nextcloud/var/www/html/cloud" __nextcloud_app music \
--cloud /var/www/html/cloud/ --state enabled
# enable a shipped app (already installed)
require="__nextcloud/cloud" __nextcloud_app files_external \
require="__nextcloud/var/www/html/cloud" __nextcloud_app files_external \
--cloud /var/www/html/cloud/ --state enabled
# remove some app
require="__nextcloud/cloud" __nextcloud_app drawio \
require="__nextcloud/var/www/html/cloud" __nextcloud_app drawio \
--cloud /var/www/html/cloud/ --state absent
# Different cloud
__nextcloud /var/www/html/nextcloud $args
# but same app name
require="__nextcloud/var/www/html/nextcloud" __nextcloud_user next_music \
--cloud /var/www/html/nextcloud/ --appid music
NOTES
-----
Currently, it manages just if the app is installed and enabled. Further

0
type/__nextcloud_user/gencode-remote Normal file → Executable file
View file

View file

@ -142,11 +142,11 @@ EXAMPLES
.. code-block:: sh
# nextcloud base installation
__nextcloud cloud $args
# Nextcloud base installation
__nextcloud /var/www/html/cloud $args
# setups an user, but do not touch it after it was created
require="__nextcloud/cloud" __nextcloud_user foo \
require="__nextcloud/var/www/html/cloud" __nextcloud_user foo \
--cloud /var/www/html/cloud/ \
--displayname "Big Fooo" \
--email "foo@bar.tld" \
@ -156,7 +156,7 @@ EXAMPLES
--only-setup
# manages an admin user fully controlled by cdist
require="__nextcloud/cloud" __nextcloud_user bar \
require="__nextcloud/var/www/html/cloud" __nextcloud_user bar \
--cloud /var/www/html/cloud/ \
--displayname "Bar" \
--email "bar@bar.tld" \
@ -164,7 +164,7 @@ EXAMPLES
--group "admin"
# disables an user
require="__nextcloud/cloud" __nextcloud_user bb \
require="__nextcloud/var/www/html/cloud" __nextcloud_user bb \
--state disabled \
--cloud /var/www/html/cloud/ \
--displayname "byebye" \
@ -172,11 +172,18 @@ EXAMPLES
--keep-email --keep-password --keep-quota --keep-groups
# removes an user
require="__nextcloud/cloud" __nextcloud_user foobar \
require="__nextcloud/var/www/html/cloud" __nextcloud_user foobar \
--state absent \
--cloud /var/www/html/cloud/
# Different cloud
__nextcloud /var/www/html/nextcloud $args
# but same user name
require="__nextcloud/var/www/html/nextcloud" __nextcloud_user next_foobar \
--cloud /var/www/html/nextcloud/ --user foobar
NOTES
-----
This type may be extended by more user settings. If you think some