Last active
December 24, 2022 21:58
-
-
Save d-Rickyy-b/8ada734450b1d42a32bca6fdc32f1c08 to your computer and use it in GitHub Desktop.
Install script for grocy on a fresh debian installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /var/www/html | |
rm index.html | |
version="2.7.1" | |
wget -q "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip" | |
unzip "grocy_${version}.zip" | |
rm "grocy_${version}.zip" | |
chown www-data: /var/www/html -R | |
cp /var/www/html/config-dist.php /var/www/html/data/config.php | |
touch /etc/apache2/sites-available/grocy.conf | |
> /etc/apache2/sites-available/grocy.conf | |
echo -e "<VirtualHost *:80>" >> /etc/apache2/sites-available/grocy.conf | |
echo -e " DocumentRoot /var/www/html/public" >> /etc/apache2/sites-available/grocy.conf | |
echo -e " ErrorLog \${APACHE_LOG_DIR}/error.log" >> /etc/apache2/sites-available/grocy.conf | |
echo -e " CustomLog \${APACHE_LOG_DIR}/access.log vhost_combined" >> /etc/apache2/sites-available/grocy.conf | |
echo -e "</VirtualHost>" >> /etc/apache2/sites-available/grocy.conf | |
apt-get update && upgrade | |
apt-get install php-sqlite3 | |
a2dissite 000-default.conf | |
a2ensite grocy.conf | |
systemctl reload apache2 |
12/ 2022
can anyone Pls. be so kind and update this that it is running on Debian 11 with no problems and uses PHP 8.1 (I think is required)
Many THX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok I have tried that out but the dependencies arent working under apt. Please check that(sqlite3 isnt the newest under apt) otherwise it will take users long to figure out.