Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [v0.1.5] - 2018-09-25
### Changed
- Update directory permissions on moodledata directory

## [v0.1.4] - 2018-09-14
### Added
- New ENV variables to configure HTTP and HTTPS ports for Nginx
Expand Down
2 changes: 1 addition & 1 deletion dc.deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
- "${PHP_VERSION}-${MOODLE_VERSION}"
#
- "--iteration"
- "v0.1.4"
- "v0.1.5"
#
- "--deb-changelog"
- "/package/CHANGELOG.md"
Expand Down
3 changes: 3 additions & 0 deletions nginx-php-moodle/bin/configure-moodle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ echo "Waiting for PHP-FPM to come up..."
if wait_for_success "/etc/init.d/php7.2-fpm status"; then
echo "PHP-FPM started!"

echo "Fixing permissions on moodledata directory..."
chown -R www-data:www-data /opt/moodle/moodledata

echo "Waiting for PostgreSQL to come up..."
if wait_for_success "/usr/bin/php${PHP_VERSION} -f /usr/local/bin/check_db.php" 120 10; then
echo "PostgreSQL started!"
Expand Down
2 changes: 1 addition & 1 deletion systemd/postinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ echo "Checking Moodle data directory"
if [ ! -d /opt/moodle/moodledata ]; then
echo "Creating Moodle data directory"
mkdir -p /opt/moodle/moodledata
chmod 777 /opt/moodle/moodledata
Comment thread
hrpatel marked this conversation as resolved.
chmod 770 /opt/moodle/moodledata
else
echo "Moodle data directory already exists"
fi
Expand Down