nixos-knossos/services/nextcloud-reset.sh
2025-11-06 19:49:17 +08:00

9 lines
309 B
Bash
Executable file

#!/run/current-system/sw/bin/bash
sudo systemctl stop postgresql
sudo systemctl stop nextcloud-setup
sudo systemctl stop nextcloud-cron
sudo systemctl stop phpfm-nextcloud
sudo systemctl stop redis-nextcloud
sudo rm -rf /var/lib/nextcloud
#sudo rm -rf /var/lib/postgresql
sudo rm -rf /var/lib/redis-nextcloud