mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
20 lines
538 B
Bash
Executable file
20 lines
538 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ $(id -u) -ne 0 ] ; then
|
|
echo "❌ Run me as root"
|
|
exit 1
|
|
fi
|
|
|
|
if id www-data > /dev/null 2>&1 ; then
|
|
user="www-data"
|
|
elif id apache > /dev/null 2>&1 ; then
|
|
user="apache"
|
|
else
|
|
echo "❌ No PHP user found"
|
|
exit 1
|
|
fi
|
|
curl https://downloads.joomla.org/fr/cms/joomla4/4-1-5/Joomla_4-1-5-Stable-Full_Package.zip?format=zip -Lo /tmp/joomla.zip
|
|
unzip -qq /tmp/joomla.zip -d /var/www/html
|
|
chown -R $user:nginx /var/www/html
|
|
find /var/www/html -type f -exec chmod 0640 {} \;
|
|
find /var/www/html -type d -exec chmod 0750 {} \;
|