su - USER
sudo su - USER
du -sh PATH/*
#!/bin/bash | |
network_id="kube-private" | |
subnet_id="kube-private-subnet" | |
flavor="e2-standard-2" | |
key_name="mykey" | |
image_id="ubuntu-22.04-lts" | |
security_group="kubernetes" | |
volume_size="200" |
#!/bin/bash | |
##Turn on maintenance mode | |
docker exec -it nextcloud occ maintenance:mode --on | |
##Backup current nextcloud install | |
docker exec -it nextcloud mv /config/www/nextcloud /config/www/nextcloud-backup | |
##Grab newest nextcloud release and unpack it | |
docker exec -it nextcloud wget https://download.nextcloud.com/server/releases/latest.tar.bz2 -P /config |
#!/bin/bash | |
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - |