Add prepare_source.sh
Some checks are pending
Deploy Moodle to STACKIT Cloud Foundry / deploy (push) Waiting to run
Some checks are pending
Deploy Moodle to STACKIT Cloud Foundry / deploy (push) Waiting to run
This commit is contained in:
parent
9a835eccd1
commit
9cb034cc5b
1 changed files with 23 additions and 0 deletions
23
prepare_source.sh
Normal file
23
prepare_source.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
echo "=== Moodle Quellcode und Plugins werden vorbereitet... ==="
|
||||
if [ ! -f "moodle-5.0.1.tgz" ]; then wget https://packaging.moodle.org/stable500/moodle-5.0.1.tgz; fi
|
||||
if [ -d "moodle" ]; then rm -rf moodle; fi
|
||||
tar -xzf moodle-5.0.1.tgz
|
||||
if [ ! -f "cachestore_redis_moodle44_2024051300.zip" ]; then wget https://moodle.org/plugins/download.php/30019/cachestore_redis_moodle44_2024051300.zip; fi
|
||||
unzip -o cachestore_redis_moodle44_2024051300.zip
|
||||
mv redis moodle/cache/stores/
|
||||
if [ ! -d "moodle/admin/tool/objectfs" ]; then git clone https://github.com/catalyst/moodle-tool_objectfs.git moodle/admin/tool/objectfs; fi
|
||||
echo '{"WEBDIR": ".", "PHP_VERSION": "{PHP_82_LATEST}"}' > moodle/.bp-config/options.json
|
||||
mkdir -p moodle/.bp-config/php/php.ini.d/
|
||||
echo "extension=mysqli" > moodle/.bp-config/php/php.ini.d/mysqli.ini
|
||||
echo "extension=redis" > moodle/.bp-config/php/php.ini.d/redis.ini
|
||||
echo "max_input_vars = 5000" > moodle/.bp-config/php/php.ini.d/moodle.ini
|
||||
mkdir -p moodle/logs
|
||||
ln -sf /dev/stdout moodle/logs/rewrite.log
|
||||
ln -sf /dev/stdout moodle/logs/proc-man.log
|
||||
mkdir -p moodle/httpd/logs
|
||||
mkdir -p moodle/php/var/run
|
||||
ln -sf /tmp/httpd.pid moodle/httpd/logs/httpd.pid
|
||||
ln -sf /tmp/php-fpm.pid moodle/php/var/run/php-fpm.pid
|
||||
echo "=== Vorbereitung abgeschlossen ==="
|
||||
Loading…
Reference in a new issue