Difference between revisions of "Nextcloud"

From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „Kategorie:Web =Nextcloud= =Manual upgrade= <source lang=bash> # cd /var/www/nextcloud/updater # sudo -u www-data php updater.phar </source> Answer the qu…“)
 
Line 14: Line 14:
 
# 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 config:system:set theme --value <your theme>
 
# sudo -u www-data php /var/www/nextcloud/occ maintenance:theme:update
 
# sudo -u www-data php /var/www/nextcloud/occ maintenance:theme:update
 +
</source>
 +
 +
=Some tweaks for the theme to disable several things=
 +
<source lang=css>
 +
/* 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;
 +
}
 
</source>
 
</source>

Revision as of 15:44, 10 January 2020

Kategorie:Web

Nextcloud

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;
}