main: modify upgrade.sh to include copy script
This commit is contained in:
parent
0a31199ecd
commit
44a0d61d0e
36
notes.md
36
notes.md
@ -3,3 +3,39 @@
|
||||
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
|
||||
|
||||
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"
|
||||
|
||||
# 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:
|
||||
enable PermitRootLogin /etc/ssh/sshd_config
|
||||
sudo systemctl restart sshd
|
||||
git clone https://githaven.org/Shiloh/lasthourcloud.git
|
||||
sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh
|
||||
|
@ -8,6 +8,18 @@ CDN="https://cdn.coollabs.io/coolify"
|
||||
# curl -fsSL $CDN/docker-compose.prod.yml -o /data/coolify/source/docker-compose.prod.yml
|
||||
# curl -fsSL $CDN/.env.production -o /data/coolify/source/.env.production
|
||||
|
||||
echo "Copying required files from Last Hour git repo..."
|
||||
cp /home/lasthour/lasthourcloud/docker-compose.yml /data/coolify/source/docker-compose.yml
|
||||
cp /home/lasthour/lasthourcloud/docker-compose.prod.yml /data/coolify/source/docker-compose.prod.yml
|
||||
cp /home/lasthour/lasthourcloud/.env.production /data/coolify/source/.env.production
|
||||
cp /home/lasthour/lasthourcloud/scripts/upgrade.sh /data/coolify/source/upgrade.sh
|
||||
cp -r /home/lasthour/lasthourcloud/public/ /data/coolify/
|
||||
cp -r /home/lasthour/lasthourcloud/app/Notifications /data/coolify/
|
||||
cp -r /home/lasthour/lasthourcloud/app/Models /data/coolify/
|
||||
cp -r /home/lasthour/lasthourcloud/app/Livewire /data/coolify/
|
||||
cp /home/lasthour/lasthourcloud/.coolify-logo /data/coolify/.coolify-logo
|
||||
cp /home/lasthour/lasthourcloud/tailwind.config.js /data/coolify/tailwind/
|
||||
|
||||
# Merge .env and .env.production. New values will be added to .env
|
||||
sort -u -t '=' -k 1,1 /data/coolify/source/.env /data/coolify/source/.env.production | sed '/^$/d' >/data/coolify/source/.env.temp && mv /data/coolify/source/.env.temp /data/coolify/source/.env
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user