Andy Baugh 5 年 前
コミット
903af230b1
2 ファイル変更2 行追加3 行削除
  1. 1 2
      js/pgupgrade.js
  2. 1 1
      lib/Troglodyne/API/Postgres.pm

+ 1 - 2
js/pgupgrade.js

@@ -167,8 +167,7 @@ function roadRoller (resp) {
         } else {
             // Do something based on the end status
             if(+obj.data['child_exit']) {
-                 upgradeWell.textContent += `Installation of PostgreSQL ${window.selectedVersion} failed: ${obj.data['child_exit']}`;
-                 upgradeWell.textContent += `Installation of PostgreSQL ${window.selectedVersion} completed successfully!`;
+                 upgradeWell.textContent += `Installation of PostgreSQL ${window.selectedVersion} failed: Subprocess exited ${obj.data['child_exit']}`;
                  submitBtn.textContent = 'Re-Try';
                  submitBtn.disabled = false;
                  return;

+ 1 - 1
lib/Troglodyne/API/Postgres.pm

@@ -158,7 +158,7 @@ sub _real_install {
             print $lh "Backup of /usr/bin/pg_ctl to /usr/bin/pg_ctl.orig failed: $!\n";
             return _cleanup("255");
         };
-        my $rb = sub { File::Copy::move('/usr/bin/pg_ctl','/usr/bin/pg_ctl.orig'); };
+        my $rb = sub { File::Copy::move('/usr/bin/pg_ctl.orig','/usr/bin/pg_ctl'); };
         push @ROLLBACKS, $rb;
 
         print $lh "[DEBUG] Got to reading\n";