From 239f9e9b31f2e8455391166f22cbf0a9fd986f76 Mon Sep 17 00:00:00 2001 From: Gary Date: Fri, 23 Feb 2024 15:32:23 -0800 Subject: [PATCH] main: modify path local_install and upgrade --- scripts/local_install.sh | 2 +- scripts/upgrade.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/local_install.sh b/scripts/local_install.sh index e9f834645..e464baf01 100644 --- a/scripts/local_install.sh +++ b/scripts/local_install.sh @@ -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 diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 24b5aafe7..b7651383e 100644 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -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