diff --git a/aio/aio-builds-setup/docs/vm-setup--update-docker-container.md b/aio/aio-builds-setup/docs/vm-setup--update-docker-container.md index 9b181b6b07..3347e6930c 100644 --- a/aio/aio-builds-setup/docs/vm-setup--update-docker-container.md +++ b/aio/aio-builds-setup/docs/vm-setup--update-docker-container.md @@ -15,9 +15,9 @@ The script assumes that the preview server source code is in the repository's `aio/aio-builds-setup/` directory and expects the following inputs: - **$1**: `HOST_REPO_DIR` -- **$2**: `HOST_LOCALCERTS_DIR` -- **$3**: `HOST_SECRETS_DIR` -- **$4**: `HOST_BUILDS_DIR` +- **$2**: `HOST_SECRETS_DIR` +- **$3**: `HOST_BUILDS_DIR` +- **$4**: `HOST_LOCALCERTS_DIR` - **$5**: `HOST_LOGS_DIR` See [here](vm-setup--create-host-dirs-and-files.md) for more info on what each input directory is @@ -34,9 +34,9 @@ You may choose to manually run the script, when necessary. Example: ```sh update-preview-server.sh \ /path/to/repo \ - /path/to/localcerts \ /path/to/secrets \ /path/to/builds \ + /path/to/localcerts \ /path/to/logs ``` @@ -48,5 +48,5 @@ log its output to `update-preview-server.log` (assuming the user has the necessa ``` # Periodically check for changes and update the preview server (if necessary) -*/30 * * * * /path/to/update-preview-server.sh /path/to/repo /path/to/localcerts /path/to/secrets /path/to/builds /path/to/logs >> /path/to/update-preview-server.log 2>&1 +*/30 * * * * /path/to/update-preview-server.sh /path/to/repo /path/to/secrets /path/to/builds /path/to/localcerts /path/to/logs >> /path/to/update-preview-server.log 2>&1 ``` diff --git a/aio/aio-builds-setup/scripts/update-preview-server.sh b/aio/aio-builds-setup/scripts/update-preview-server.sh index aa341c4282..3bb2bbf27d 100755 --- a/aio/aio-builds-setup/scripts/update-preview-server.sh +++ b/aio/aio-builds-setup/scripts/update-preview-server.sh @@ -7,9 +7,9 @@ echo -e "\n\n[`date`] - Updating the preview server..." # Input readonly HOST_REPO_DIR=$1 -readonly HOST_LOCALCERTS_DIR=$2 -readonly HOST_SECRETS_DIR=$3 -readonly HOST_BUILDS_DIR=$4 +readonly HOST_SECRETS_DIR=$2 +readonly HOST_BUILDS_DIR=$3 +readonly HOST_LOCALCERTS_DIR=$4 readonly HOST_LOGS_DIR=$5 # Constants @@ -60,9 +60,9 @@ readonly CONTAINER_NAME=aio --publish 80:80 \ --publish 443:443 \ --restart unless-stopped \ - --volume $HOST_LOCALCERTS_DIR:/etc/ssl/localcerts:ro \ --volume $HOST_SECRETS_DIR:/aio-secrets:ro \ --volume $HOST_BUILDS_DIR:/var/www/aio-builds \ + --volume $HOST_LOCALCERTS_DIR:/etc/ssl/localcerts:ro \ --volume $HOST_LOGS_DIR:/var/log/aio \ "$LATEST_IMAGE_NAME"