__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 .. code-block:: sh
# nextcloud base installation # Nextcloud base installation
__nextcloud cloud $args __nextcloud /var/www/html/cloud $args
# install the music app # 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 --cloud /var/www/html/cloud/ --state enabled
# enable a shipped app (already installed) # 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 --cloud /var/www/html/cloud/ --state enabled
# remove some app # 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 --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 NOTES
----- -----
Currently, it manages just if the app is installed and enabled. Further 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 .. code-block:: sh
# nextcloud base installation # Nextcloud base installation
__nextcloud cloud $args __nextcloud /var/www/html/cloud $args
# setups an user, but do not touch it after it was created # 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/ \ --cloud /var/www/html/cloud/ \
--displayname "Big Fooo" \ --displayname "Big Fooo" \
--email "foo@bar.tld" \ --email "foo@bar.tld" \
@ -156,7 +156,7 @@ EXAMPLES
--only-setup --only-setup
# manages an admin user fully controlled by cdist # 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/ \ --cloud /var/www/html/cloud/ \
--displayname "Bar" \ --displayname "Bar" \
--email "bar@bar.tld" \ --email "bar@bar.tld" \
@ -164,7 +164,7 @@ EXAMPLES
--group "admin" --group "admin"
# disables an user # disables an user
require="__nextcloud/cloud" __nextcloud_user bb \ require="__nextcloud/var/www/html/cloud" __nextcloud_user bb \
--state disabled \ --state disabled \
--cloud /var/www/html/cloud/ \ --cloud /var/www/html/cloud/ \
--displayname "byebye" \ --displayname "byebye" \
@ -172,11 +172,18 @@ EXAMPLES
--keep-email --keep-password --keep-quota --keep-groups --keep-email --keep-password --keep-quota --keep-groups
# removes an user # removes an user
require="__nextcloud/cloud" __nextcloud_user foobar \ require="__nextcloud/var/www/html/cloud" __nextcloud_user foobar \
--state absent \ --state absent \
--cloud /var/www/html/cloud/ --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 NOTES
----- -----
This type may be extended by more user settings. If you think some This type may be extended by more user settings. If you think some