Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2024-08-19 12:52:03 +02:00 committed by GitHub
parent e9bc1d058a
commit 249eda5e5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -438,10 +438,9 @@ update_config_files() {
echo "Downloading latest OpenPanel configuration from https://github.com/stefanpejcic/openpanel-configuration" echo "Downloading latest OpenPanel configuration from https://github.com/stefanpejcic/openpanel-configuration"
echo "" echo ""
cd /etc/openpanel/ cd /etc/openpanel/
git stash git fetch origin
git pull git checkout origin/main -- .
git stash pop git add .
cp /etc/openpanel/docker/compose/new-docker-compose.yml /root/docker-compose.yml cp /etc/openpanel/docker/compose/new-docker-compose.yml /root/docker-compose.yml
} }
@ -451,7 +450,6 @@ download_new_panel() {
mkdir -p $OPENPANEL_DIR mkdir -p $OPENPANEL_DIR
echo "Downloading latest OpenPanel image from https://hub.docker.com/r/openpanel/openpanel" echo "Downloading latest OpenPanel image from https://hub.docker.com/r/openpanel/openpanel"
echo "" echo ""
#nohup sh -c "echo openpanel/openpanel:latest | xargs -P4 -n1 docker pull" </dev/null >nohup.out 2>nohup.err &
docker pull openpanel/openpanel docker pull openpanel/openpanel
} }