forked from extern/nixos-wiki-infra
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