Skip to content

Commit 1f82fc9

Browse files
committed
powa: make sure login works after es_ctlcluster enable-powa
1 parent 85acf4b commit 1f82fc9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

postgresql/es_ctlcluster

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ enable_powa ()
9595
createdb --cluster "$VERSION/$CLUSTER" --echo powa
9696
psql -X --cluster "$VERSION/$CLUSTER" -c "create extension if not exists powa cascade" powa
9797
EOF
98+
99+
echo "Updating powa-web configuration ..."
100+
update-powa-web-config
98101
}
99102

100103
enable_powa_addons ()
@@ -120,7 +123,7 @@ enable_powa_addons ()
120123
fi
121124

122125
for EXTENSION in $EXTENSIONS; do
123-
if [ "$EXTENSION" = "pg-wait-sampling" -o "$EXTENSION" = "pg-track-settings" -o "$EXTENSION" = "pg_track_settings" ]; then
126+
if [ "$EXTENSION" = "pg-track-settings" -o "$EXTENSION" = "pg_track_settings" ]; then
124127
continue
125128
fi
126129
shared_preload $(echo $EXTENSION | tr '-' '_') && restart=yes

powa/update-powa-web-config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ close $fh or die "$filename: $!";
5252
chmod $mode, $filename or die "$filename: $!";
5353
chown $user, $group, $filename or die "$filename: $!";
5454
rename $filename, $powaconf or die "$powaconf: $!";
55+
# restart powa-web
56+
system('systemctl restart powa-web')

0 commit comments

Comments
 (0)