fixed path and docker instead nerdctl
This commit is contained in:
16
README.md
16
README.md
@@ -5,34 +5,34 @@
|
|||||||
Add this line into the host crontab with `crontab -e`.
|
Add this line into the host crontab with `crontab -e`.
|
||||||
```
|
```
|
||||||
# Nextcloud
|
# Nextcloud
|
||||||
*/5 * * * * nerdctl exec -u www-data cloudnetignet_nextcloud php /var/www/html/cron.php
|
*/5 * * * * /usr/bin/docker exec -u www-data cloudnetignet_nextcloud php /var/www/html/cron.php
|
||||||
```
|
```
|
||||||
|
|
||||||
## Config
|
## Config
|
||||||
|
|
||||||
```
|
```
|
||||||
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ background:cron
|
# docker exec --user www-data cloudnetignet_nextcloud php occ background:cron
|
||||||
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ config:system:set maintenance_window_start --value="4" --type=integer
|
# docker exec --user www-data cloudnetignet_nextcloud php occ config:system:set maintenance_window_start --value="4" --type=integer
|
||||||
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ config:system:set default_phone_region --value="fr"
|
# docker exec --user www-data cloudnetignet_nextcloud php occ config:system:set default_phone_region --value="fr"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Maintenance
|
## Maintenance
|
||||||
|
|
||||||
```
|
```
|
||||||
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ maintenance:repair --include-expensive
|
# docker exec --user www-data cloudnetignet_nextcloud php occ maintenance:repair --include-expensive
|
||||||
# nerdctl exec --user www-data cloudnetignet_nextcloud php occ db:add-missing-indices
|
# docker exec --user www-data cloudnetignet_nextcloud php occ db:add-missing-indices
|
||||||
```
|
```
|
||||||
|
|
||||||
## Privacy
|
## Privacy
|
||||||
|
|
||||||
Disable the contact menu.
|
Disable the contact menu.
|
||||||
```
|
```
|
||||||
# nerdctl exec --user www-data -ti cloudnetignet_nextcloud sed -i '/<div id="contactsmenu"><\/div>/d' core/templates/layout.user.php
|
# docker exec --user www-data -ti cloudnetignet_nextcloud sed -i '/<div id="contactsmenu"><\/div>/d' core/templates/layout.user.php
|
||||||
```
|
```
|
||||||
|
|
||||||
Disable the unified search menu.
|
Disable the unified search menu.
|
||||||
```
|
```
|
||||||
# nerdctl exec --user www-data -ti cloudnetignet_nextcloud sed -i '/<div id="unified-search"><\/div>/d' core/templates/layout.user.php
|
# docker exec --user www-data -ti cloudnetignet_nextcloud sed -i '/<div id="unified-search"><\/div>/d' core/templates/layout.user.php
|
||||||
```
|
```
|
||||||
|
|
||||||
## Tips
|
## Tips
|
||||||
|
|||||||
Reference in New Issue
Block a user