tests - add missing variables.env for moodle/linux

This commit is contained in:
bunkerity 2022-08-17 15:12:35 +02:00
parent d0e3f3ae26
commit 39ed524f02
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
7 changed files with 24 additions and 12 deletions

View File

@ -6,7 +6,7 @@ if [ $(id -u) -ne 0 ] ; then
fi
curl https://github.com/authelia/authelia/releases/download/v4.36.2/authelia-v4.36.2-linux-amd64.tar.gz -Lo /tmp/authelia.tar.gz
tar -xvzf /tmp/authelia.tar.gz -C /tmp
tar -xzf /tmp/authelia.tar.gz -C /tmp
mv /tmp/authelia-linux-amd64 /usr/bin/authelia
mv /tmp/authelia.service /etc/systemd/system
mkdir /etc/authelia
@ -16,4 +16,4 @@ sed -i "s@redis:@@g" /etc/authelia/configuration.yml
sed -i "s@host: redis@@g" /etc/authelia/configuration.yml
sed -i "s@port: 6379@@g" /etc/authelia/configuration.yml
systemctl daemon-reload
systemctl start authelia
systemctl start authelia

View File

@ -14,10 +14,10 @@ else
exit 1
fi
curl https://releases.mattermost.com/7.2.0/mattermost-7.2.0-linux-amd64.tar.gz -Lo /tmp/mattermost.tar.gz
tar -xvzf /tmp/mattermost.tar.gz -C /tmp
tar -xzf /tmp/mattermost.tar.gz -C /tmp
cd /tmp/drupal-*
cp -r * /opt/bunkerweb/www
chown -R $user:nginx /opt/bunkerweb/www
find /opt/bunkerweb/www -type f -exec chmod 0640 {} \;
find /opt/bunkerweb/www -type d -exec chmod 0750 {} \;
cp -r bw-data/configs/* /opt/bunkerweb/configs
cp -r bw-data/configs/* /opt/bunkerweb/configs

View File

@ -14,7 +14,7 @@ else
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 /tmp/joomla.zip -d /opt/bunkerweb/www
unzip -qq /tmp/joomla.zip -d /opt/bunkerweb/www
chown -R $user:nginx /opt/bunkerweb/www
find /opt/bunkerweb/www -type f -exec chmod 0640 {} \;
find /opt/bunkerweb/www -type d -exec chmod 0750 {} \;
find /opt/bunkerweb/www -type d -exec chmod 0750 {} \;

View File

@ -14,8 +14,8 @@ else
exit 1
fi
curl https://download.moodle.org/download.php/direct/stable400/moodle-4.0.2.tgz -Lo /tmp/moodle.tgz
tar -xvzf /tmp/moodle.tgz -C /tmp
tar -xzf /tmp/moodle.tgz -C /tmp
cp -r /tmp/moodle/* /opt/bunkerweb/www
chown -R $user:nginx /opt/bunkerweb/www
find /opt/bunkerweb/www -type f -exec chmod 0640 {} \;
find /opt/bunkerweb/www -type d -exec chmod 0750 {} \;
find /opt/bunkerweb/www -type d -exec chmod 0750 {} \;

View File

@ -0,0 +1,12 @@
HTTP_PORT=80
HTTPS_PORT=443
DNS_RESOLVERS=8.8.8.8 8.8.4.4
# Replace with your domain
SERVER_NAME=www.example.com
DISABLE_DEFAULT_SERVER=yes
AUTO_LETS_ENCRYPT=yes
USE_CLIENT_CACHE=yes
USE_GZIP=yes
MAX_CLIENT_SIZE=50m
LOCAL_PHP=/run/php/php-fpm.sock
LOCAL_PHP_PATH=/opt/bunkerweb/www

View File

@ -14,9 +14,9 @@ else
exit 1
fi
curl https://download.nextcloud.com/server/releases/latest.zip -Lo /tmp/nextcloud.zip
unzip /tmp/nextcloud.zip -d /tmp
unzip -qq /tmp/nextcloud.zip -d /tmp
cp -r /tmp/nextcloud/* /opt/bunkerweb/www
chown -R $user:nginx /opt/bunkerweb/www
find /opt/bunkerweb/www -type f -exec chmod 0640 {} \;
find /opt/bunkerweb/www -type d -exec chmod 0750 {} \;
cp -r bw-data/configs/* /opt/bunkerweb/configs
cp -r bw-data/configs/* /opt/bunkerweb/configs

View File

@ -14,8 +14,8 @@ else
exit 1
fi
curl https://wordpress.org/latest.zip -Lo /tmp/wordpress.zip
unzip /tmp/wordpress.zip -d /tmp
unzip -qq /tmp/wordpress.zip -d /tmp
cp -r /tmp/wordpress/* /opt/bunkerweb/www
chown -R $user:nginx /opt/bunkerweb/www
find /opt/bunkerweb/www -type f -exec chmod 0640 {} \;
find /opt/bunkerweb/www -type d -exec chmod 0750 {} \;
find /opt/bunkerweb/www -type d -exec chmod 0750 {} \;