mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2024-11-25 17:53:28 +01:00
wiki: fix owner after restoring database
This commit is contained in:
parent
2fa03d9042
commit
3d3d4539e5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user