wiki: fix owner after restoring database

This commit is contained in:
Jörg Thalheim 2023-11-04 18:46:19 +01:00
parent 2fa03d9042
commit 3d3d4539e5

View File

@ -32,6 +32,7 @@ let
systemctl stop phpfpm-mediawiki.service
runuser -u postgres -- dropdb mediawiki
systemctl restart postgresql
runuser -u postgres -- psql -c "ALTER DATABASE mediawiki OWNER TO mediawiki"
systemctl restart mediawiki-init.service
cat <<EOF | runuser -u mediawiki -- mediawiki-maintenance deleteBatch.php
Main_Page