From 5569dfd040c7a88afc776c9f7c3448ca9d9e0310 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 21 Jul 2022 21:40:40 -0400 Subject: [PATCH] Update grocy-install.sh --- setup/grocy-install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup/grocy-install.sh b/setup/grocy-install.sh index 0dc26dff..b9f62174 100644 --- a/setup/grocy-install.sh +++ b/setup/grocy-install.sh @@ -84,10 +84,15 @@ cat < /etc/apache2/sites-available/grocy.conf ServerAdmin webmaster@localhost DocumentRoot /var/www/html/public ErrorLog /var/log/apache2/error.log + + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Order allow,deny + allow from all + EOF -sed -i '//,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf a2dissite 000-default.conf &>/dev/null a2ensite grocy.conf &>/dev/null a2enmod rewrite &>/dev/null @@ -114,5 +119,5 @@ msg_ok "Customized Container" msg_info "Cleaning up" apt-get autoremove >/dev/null apt-get autoclean >/dev/null -rm -rf /root/latest +rm -rf /var/cache/* /var/lib/apt/lists/* /root/latest msg_ok "Cleaned"