From 981492e492fff8bd0057bac92951026f59db74ca Mon Sep 17 00:00:00 2001 From: webpwnized Date: Sat, 19 Oct 2024 19:58:26 -0400 Subject: [PATCH] 1.0.73 Update www build script --- .build/www/Dockerfile | 7 +++++-- .tools/update-mutillidae-application.sh | 4 ++-- version | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.build/www/Dockerfile b/.build/www/Dockerfile index 0c77de4..a0a1ae1 100644 --- a/.build/www/Dockerfile +++ b/.build/www/Dockerfile @@ -29,7 +29,7 @@ ARG DATABASE_USERNAME="root" ARG DATABASE_PASSWORD="mutillidae" ARG DATABASE_NAME="mutillidae" ARG DATABASE_PORT="3306" -ARG ENABLE_ERROR_REPORTING=false # The value can be true or false. The default is false. +ARG ENABLE_ERROR_REPORTING=true # The value can be true or false. The default is true. # ######################### # # Install software packages # @@ -52,11 +52,14 @@ RUN apt-get update && \ apt-get install --no-install-recommends -y libonig-dev && docker-php-ext-install mbstring && \ apt-get install --no-install-recommends -y libcurl4-openssl-dev && docker-php-ext-install curl && \ docker-php-ext-install mysqli && \ - apt-get install --no-install-recommends -y dnsutils ntp iputils-ping git && \ + apt-get install --no-install-recommends -y dnsutils git iputils-ping ntp && \ cd /tmp && \ git clone https://github.com/webpwnized/mutillidae.git mutillidae && \ cp -r mutillidae/src /var/www/mutillidae && \ rm -rf /tmp/mutillidae && \ + mkdir -p /var/www/mutillidae/data /var/www/mutillidae/passwords && \ + chown -R www-data:www-data /var/www/mutillidae/data /var/www/mutillidae/passwords && \ + chmod -R 775 /var/www/mutillidae/data /var/www/mutillidae/passwords && \ apt-get remove --no-install-recommends -y git && \ apt-get -y upgrade && \ apt-get -y autoremove && \ diff --git a/.tools/update-mutillidae-application.sh b/.tools/update-mutillidae-application.sh index f06adf0..cbc4094 100755 --- a/.tools/update-mutillidae-application.sh +++ b/.tools/update-mutillidae-application.sh @@ -22,7 +22,7 @@ show_help() { echo " and updates the application configuration to connect to the correct database and LDAP server." echo "" echo "Example:" - echo " ./update_containers_feature_branch.sh feature/my-new-feature" + echo " $0 feature/my-new-feature" exit 0 } @@ -128,4 +128,4 @@ main() { } # Call the main function -main "$@" \ No newline at end of file +main "$@" diff --git a/version b/version index eea6f62..be1dcc8 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.72 +1.0.73