mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-12-05 16:27:22 +01:00
2.2 KiB
2.2 KiB
Nextcloud survival instructions
This does not concern you, go away, unless this actually concerns you.
General
- Install NextCloud desktop. Figure it out yourself, if it’s not mentioned here.
flatpak
sudo flatpak install flathub com.nextcloud.desktopclient.nextcloud --assumeyes
sudo flatpak override com.nextcloud.desktopclient.nextcloud --filesystem=~/Nextcloud:createSysadmin
Go away. This is likely highly specific to an undisclosed theoretical location. Maybe look into official documentation instead?
There is an environment variable NC_debug for which
NextCloud keeps telling you to sudo --preserve-env aka
-E. I disagree, sudo is fully capable of
Defaults env_keep += "NC_debug" with potentially
less unforeseen consequences.
# Everything is expected to be ran in the NextCloud / ownCloud Console
# directory, which in this case means
cd /var/www/html
# Usage instructions
sudo -u www-data php --define apc.enable_cli=1 occ --help
# Status. Has flags --output=json[,pretty}
sudo -u www-data php --define apc.enable_cli=1 occ status
# Example: self-repair?
sudo -u www-data php --define apc.enable_cli=1 occ maintenance:repair --include-expensive
# Disable maintenance-mode
sudo -u www-data php --define apc.enable_cli=1 occ maintenance:mode --off
# Post-upgrade routine tasks once new version is downloaded.
sudo -u www-data php --define apc.enable_cli=1 occ upgrade
# Display apps pending update. Remove flag for actually updating.
sudo -u www-data php --define apc.enable_cli=1 occ app:update --showonlyInteresting keywords for perusing official documentation
sudo -u www-data php --define apc.enable_cli=1 occ files:transfer-ownershipsudo -u www-data php --define apc.enable_cli=1 occ maintenancesudo -u www-data php --define apc.enable_cli=1 occ securitysudo -u www-data php --define apc.enable_cli=1 occ usersudo -u www-data php --define apc.enable_cli=1 occ user:report
sudo -u www-data php --define apc.enable_cli=1 occ setupchecks