Nextcloud: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
Line 14: Line 14:
   - versionstring: 19.0.2
   - versionstring: 19.0.2
   - edition:  
   - edition:  
</source>
==Send calendar events==
Set the EventRemindersMode to occ:
<source lang=bash>
# occ config:app:set dav sendEventRemindersMode --value occ
</source>
and add a cronjob for the user running he webserver:
<source lang=bash>
# crontab -u www-data -e
# m h  dom mon dow  command
*/15  * * * * php -f /var/www/nextcloud/cron.php
# send calendar events every 5 minutes
*/5  * * * * php -f /var/www/nextcloud/occ dav:send-event-reminders
</source>
</source>



Revision as of 14:19, 10 September 2020

Kategorie:Web

Nextcloud

BASH alias

alias occ='sudo --user=www-data /usr/bin/php -f /var/www/nextcloud/occ'
# occ status
  - installed: true
  - version: 19.0.2.2
  - versionstring: 19.0.2
  - edition:

Send calendar events

Set the EventRemindersMode to occ:

# occ config:app:set dav sendEventRemindersMode --value occ

and add a cronjob for the user running he webserver:

# crontab -u www-data -e
# m h  dom mon dow   command
*/15  * * * * php -f /var/www/nextcloud/cron.php

# send calendar events every 5 minutes
*/5   * * * * php -f /var/www/nextcloud/occ dav:send-event-reminders

Manual upgrade

# cd /var/www/nextcloud/updater && sudo -u www-data php updater.phar

Answer the questions...

If you have an own theme proceed with this steps:

# sudo -u www-data php /var/www/nextcloud/occ config:system:set theme --value <your theme>
# sudo -u www-data php /var/www/nextcloud/occ maintenance:theme:update

Some tweaks for the theme to disable several things

/* remove quota */
#quota {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


/* remove lost password */
.lost-password-container #lost-password, .lost-password-container #lost-password-back {
    display: none;
}

/* remove contacts menu */
#contactsmenu { display: none; }


/* remove contacts button */
li[data-id="contacts"] {
  display: none;
  visibility : hidden;
  height : 0px;
  width : 0px;
  margin : 0px;
  padding : 0px;
  overflow : hidden;
}

/* remove user button */
li[data-id="core_users"] {
  display: none;
  visibility : hidden;
  height : 0px;
  width : 0px;
  margin : 0px;
  padding : 0px;
  overflow : hidden;
}