Added mod_actions and changed way installation path is read

This commit is contained in:
2023-02-14 18:53:33 -03:00
parent 05de20cb4b
commit b5065ecea0

View File

@ -5,12 +5,13 @@ apt-get install -yq --no-install-recommends zip unzip libzip-dev
rm -r /var/lib/apt/lists/*
docker-php-ext-install zip
composer -d "${LOGVIEW_INSTALLATION_PATH}/app" install
mkdir "${LOGVIEW_INSTALLATION_PATH}/app/cache"
chmod -R 777 "${LOGVIEW_INSTALLATION_PATH}/app/cache"
composer -d "$LOGVIEW_INSTALLATION_PATH/app" install
mkdir "$LOGVIEW_INSTALLATION_PATH/app/cache"
chmod -R 777 "$LOGVIEW_INSTALLATION_PATH/app/cache"
sed -ri -e 's!/var/www/html!${APACHE_PUBLIC_ROOT}!g' /etc/apache2/sites-available/*.conf
sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
a2enmod rewrite
a2enmod actions
service apache2 restart