2024-02-23 00:22:33 +00:00
|
|
|
sudo docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate
|
2024-02-23 01:43:23 +00:00
|
|
|
|
2024-02-23 00:22:33 +00:00
|
|
|
sudo docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml down
|
2024-02-23 02:09:33 +00:00
|
|
|
|
|
|
|
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate"
|
2024-02-23 18:59:29 +00:00
|
|
|
|
|
|
|
# Check the current value
|
|
|
|
|
|
|
|
grep PermitRootLogin /etc/ssh/sshd_config
|
|
|
|
|
|
|
|
# If the value is not `yes` or `without-password` or `prohibit-password`, change it and make sure it is not commented out.
|
|
|
|
|
|
|
|
# If it is commented out, remove the `#` character at the beginning of the line.
|
|
|
|
|
|
|
|
sudo vi /etc/ssh/sshd_config
|
|
|
|
|
|
|
|
# You can exit the editor by pressing `Esc` and then `:wq` and then `Enter` keys - thank me later.
|
|
|
|
|
|
|
|
# Restart the SSH service
|
|
|
|
|
|
|
|
# Ubuntu/Debian/CentOS/RHEL/Arch Linux/SLES/openSUSE
|
|
|
|
|
|
|
|
sudo systemctl restart sshd
|
|
|
|
|
|
|
|
# Alpine Linux
|
|
|
|
|
|
|
|
sudo rc-service sshd restart
|
|
|
|
|
|
|
|
Clean up:
|
|
|
|
Remove local key ~/.ssh/authorized_keys
|
|
|
|
sudo rm -rf /data/coolify &&
|
|
|
|
sudo docker stop $(sudo docker ps -q) &&
|
|
|
|
sudo docker rm $(sudo docker ps -a -q) &&
|
|
|
|
sudo docker rmi $(sudo docker images -q) &&
|
|
|
|
sudo docker volume rm $(sudo docker volume ls -q)
|
|
|
|
|
|
|
|
Install sequence:
|
2024-02-23 19:21:57 +00:00
|
|
|
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config &&
|
|
|
|
sudo systemctl restart sshd &&
|
2024-02-23 18:59:29 +00:00
|
|
|
git clone https://githaven.org/Shiloh/lasthourcloud.git
|
|
|
|
sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh
|
2024-02-23 19:21:57 +00:00
|
|
|
sudo bash /home/lasthour/lasthourcloud/scripts/upgrade.sh
|
2024-02-27 23:15:06 +00:00
|
|
|
Running php artisan optimize:clear clears the cached files, preventing potential issues.
|