main: modify path local_install and upgrade

This commit is contained in:
Gary 2024-02-23 15:32:23 -08:00
parent c34013f7e2
commit 239f9e9b31
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ cp /home/lasthour/lasthourcloud/docker-compose.yml /data/coolify/source/docker-c
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/{*,.*} /data/coolify/
cp -R /home/lasthour/lasthourcloud/* /data/coolify/
chown -R 9999:root /data/coolify
chmod -R 700 /data/coolify

View File

@ -13,7 +13,7 @@ cp /home/lasthour/lasthourcloud/docker-compose.yml /data/coolify/source/docker-c
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/ /data/coolify/
cp -R /home/lasthour/lasthourcloud/* /data/coolify/
# 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