Skip to content

Commit

Permalink
powa: make sure login works after es_ctlcluster enable-powa
Browse files Browse the repository at this point in the history
  • Loading branch information
mbanck-ntap committed Feb 27, 2024
1 parent 85acf4b commit 1f82fc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion postgresql/es_ctlcluster
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ enable_powa ()
createdb --cluster "$VERSION/$CLUSTER" --echo powa
psql -X --cluster "$VERSION/$CLUSTER" -c "create extension if not exists powa cascade" powa
EOF

echo "Updating powa-web configuration ..."
update-powa-web-config
}

enable_powa_addons ()
Expand All @@ -120,7 +123,7 @@ enable_powa_addons ()
fi

for EXTENSION in $EXTENSIONS; do
if [ "$EXTENSION" = "pg-wait-sampling" -o "$EXTENSION" = "pg-track-settings" -o "$EXTENSION" = "pg_track_settings" ]; then
if [ "$EXTENSION" = "pg-track-settings" -o "$EXTENSION" = "pg_track_settings" ]; then
continue
fi
shared_preload $(echo $EXTENSION | tr '-' '_') && restart=yes
Expand Down
2 changes: 2 additions & 0 deletions powa/update-powa-web-config
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ close $fh or die "$filename: $!";
chmod $mode, $filename or die "$filename: $!";
chown $user, $group, $filename or die "$filename: $!";
rename $filename, $powaconf or die "$powaconf: $!";
# restart powa-web
system('systemctl restart powa-web')

0 comments on commit 1f82fc9

Please sign in to comment.