Update install.sh

This commit is contained in:
Stefan Pejcic 2025-04-09 16:18:52 +02:00 committed by GitHub
parent b889d1f29a
commit c3bc50dd99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -596,9 +596,7 @@ docker_compose_up(){
cp /etc/openpanel/docker/compose/.env /root/.env > /dev/null 2>&1
if [ "$CUSTOM_VERSION" = true ]; then
sed -i "s/^VERSION=.*$/VERSION=\"$PANEL_VERSION\"/" /root/.env
fi
sed -i "s/^VERSION=.*$/VERSION=\"$PANEL_VERSION\"/" /root/.env
# generate random password for mysql
MYSQL_ROOT_PASSWORD=$(openssl rand -base64 -hex 9)