Add reverse wizard logic where the wizard is activated by default and USE_WIZARD=no has to be set to deactivate it when installing a Linux integration

This commit is contained in:
Théophile Diot 2024-10-31 08:25:58 +01:00
parent f15b5eea61
commit bff790e0a0
No known key found for this signature in database
GPG key ID: FA995104A0BA376A
3 changed files with 10 additions and 10 deletions

View file

@ -356,10 +356,10 @@ Please ensure that you have **NGINX 1.26.2 installed before installing BunkerWeb
echo "force-bad-version" | sudo tee -a /etc/dpkg/dpkg.cfg
```
Optional step : if you want to automatically enable the [setup wizard](web-ui.md#setup-wizard) when BunkerWeb is installed, export the following variable :
Optional step : if you don't want to use the automatically enabled [setup wizard](web-ui.md#setup-wizard) when BunkerWeb is installed, export the following variable :
```shell
export UI_WIZARD=1
export UI_WIZARD=no
```
And finally install BunkerWeb 1.6.0-beta :
@ -403,10 +403,10 @@ Please ensure that you have **NGINX 1.26.2 installed before installing BunkerWeb
echo "force-bad-version" | sudo tee -a /etc/dpkg/dpkg.cfg
```
Optional step : if you want to automatically enable the [setup wizard](web-ui.md#setup-wizard) when BunkerWeb is installed, export the following variable :
Optional step : if you don't want to use the automatically enabled [setup wizard](web-ui.md#setup-wizard) when BunkerWeb is installed, export the following variable :
```shell
export UI_WIZARD=1
export UI_WIZARD=no
```
And finally install BunkerWeb 1.6.0-beta :
@ -438,10 +438,10 @@ Please ensure that you have **NGINX 1.26.2 installed before installing BunkerWeb
sudo dnf install -y nginx-1.26.2
```
Optional step : if you want to automatically enable the [setup wizard](web-ui.md#setup-wizard) when BunkerWeb is installed, export the following variable :
Optional step : if you don't want to use the automatically enabled [setup wizard](web-ui.md#setup-wizard) when BunkerWeb is installed, export the following variable :
```shell
export UI_WIZARD=1
export UI_WIZARD=no
```
And finally install BunkerWeb 1.6.0-beta :
@ -489,10 +489,10 @@ Please ensure that you have **NGINX 1.26.2 installed before installing BunkerWeb
sudo dnf install nginx-1.26.2
```
Optional step : if you want to automatically enable the [setup wizard](web-ui.md#setup-wizard) when BunkerWeb is installed, export the following variable :
Optional step : if you don't want to use the automatically enabled [setup wizard](web-ui.md#setup-wizard) when BunkerWeb is installed, export the following variable :
```shell
export UI_WIZARD=1
export UI_WIZARD=no
```
And finally install BunkerWeb 1.6.0-beta :

View file

@ -756,7 +756,7 @@ Review your final BunkerWeb UI URL and then click on the `Setup` button. Once th
=== "Linux"
If you want to use the setup wizard, you will need to run the following command `export UI_WIZARD=1` before installing BunkerWeb as described in [integrations section](integrations.md#linux) of the documentation (this is an optional step).
If you don't want to use the setup wizard, you will need to run the following command `export UI_WIZARD=no` before installing BunkerWeb as described in [integrations section](integrations.md#linux) of the documentation (this is an optional step).
!!! tip "Accessing the setup wizard"

View file

@ -65,7 +65,7 @@ else
fi
# Create wizard config
if [ "$UI_WIZARD" != "" ] ; then
if [ "$UI_WIZARD" != "no" ] ; then
echo -ne 'DNS_RESOLVERS=9.9.9.9 8.8.8.8 8.8.4.4\nHTTP_PORT=80\nHTTPS_PORT=443\nAPI_LISTEN_IP=127.0.0.1\nMULTISITE=yes\nUI_HOST=http://127.0.0.1:7000\nSERVER_NAME=\n' > /etc/bunkerweb/variables.env
do_and_check_cmd chown nginx:nginx /etc/bunkerweb/variables.env
do_and_check_cmd chmod 660 /etc/bunkerweb/variables.env