Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade39 #127

Merged
merged 2 commits into from
Mar 21, 2024
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
2 changes: 1 addition & 1 deletion aqua/entrypoint_mediawiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
MW_DIR=/var/www/html
if [ -f /backup/LocalSettings.php ]; then
if [ ! -L $MW_DIR/LocalSettings.php ]; then
ln -s /backup/LocalSettings.php $MW_DIR/LocalSettings.php
echo -e '<?php\nrequire_once "/backup/LocalSettings.php";' > $MW_DIR/LocalSettings.php
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@it-spiderman Thank you, this would have taken us quite some time to figure out.

fi
fi

Expand Down
6 changes: 5 additions & 1 deletion aqua/install_pkc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
retry_counter=0
while ! install_media_wiki; do
if [ $retry_counter -gt 4 ]; then
echo "MediaWiki intallation retries exceeded"

Check failure on line 78 in aqua/install_pkc.sh

View workflow job for this annotation

GitHub Actions / codespell

intallation ==> installation
break
fi
retry_counter=$((retry_counter+1))
Expand Down Expand Up @@ -110,6 +110,8 @@
#disable_extension VisualEditor
disable_extension ConfirmEdit
disable_extension SpamBlacklist
# Dependency issues in MW 1.39. Also, since PKC is not public, not needed
disable_extension AbuseFilter

# Enable file upload
sed -i "s/wgEnableUploads = false;/wgEnableUploads = true;/" LocalSettings.php
Expand Down Expand Up @@ -182,4 +184,6 @@
# Move the actual LocalSettings.php file to a backup folder that persists after a
# docker compose down.
mv $MW_DIR/LocalSettings.php /backup/LocalSettings.php
ln -s /backup/LocalSettings.php $MW_DIR/LocalSettings.php
# Symlinks dont seem to work
# ln -s /backup/LocalSettings.php $MW_DIR/LocalSettings.php
echo -e '<?php\nrequire_once "/backup/LocalSettings.php";' > $MW_DIR/LocalSettings.php
Loading