Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #8 from JeanMertz/master

Update plist filename to work with homebrew changes
  • Loading branch information...
commit 844104fed96deed017fc15f372e131ad131fad87 2 parents 9b428ab + 734c6cd
John Wang authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 Postgres/Postgres.m
6 Postgres/Postgres.m
@@ -114,7 +114,7 @@ - (void)checkServerStatus {
114 114
115 115 // Set the running/stopped label and set the button text to correct
116 116 // Check if Auto-start is enabled and set checkbox accordingly
117   - args = [NSArray arrayWithObjects:@"list",@"org.postgresql.postgres", nil];
  117 + args = [NSArray arrayWithObjects:@"list",@"homebrew.mxcl.postgresql", nil];
118 118 NSString *autoS = [self runCLICommand:LAUNCHCTL arguments:args waitUntilExit:NO];
119 119
120 120 if ([autoS length] == 0 || [autoS isEqualToString:@"launchctl list returned unknown response"]) {
@@ -203,7 +203,7 @@ - (IBAction)autoStartChanged:(id)sender {
203 203 [self.progressIndicator startAnimation:self];
204 204
205 205 NSString *launch_agents = [@"~/Library/LaunchAgents/" stringByExpandingTildeInPath];
206   - NSString *plist = [@"~/Library/LaunchAgents/org.postgresql.postgres.plist" stringByExpandingTildeInPath];
  206 + NSString *plist = [@"~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist" stringByExpandingTildeInPath];
207 207
208 208 if ([self.autoStartCheckBox state] == 0) {
209 209 // launchctl unload -w ~/Library/LaunchAgents/org.postgresql.postgres.plist
@@ -216,7 +216,7 @@ - (IBAction)autoStartChanged:(id)sender {
216 216 result = [self runCLICommand:MKDIR arguments:args waitUntilExit:YES];
217 217
218 218 // find the postgres.plist in the /usr/local
219   - args = [NSArray arrayWithObjects:USR_LOCAL,@"-type", @"f", @"-name", @"org.postgresql.postgres.plist", nil];
  219 + args = [NSArray arrayWithObjects:USR_LOCAL,@"-type", @"f", @"-name", @"homebrew.mxcl.postgresql.plist", nil];
220 220 result = [self runCLICommand:FIND arguments:args waitUntilExit:YES];
221 221 NSArray *lines = [result componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]];
222 222 if ([lines count] > 0) {

0 comments on commit 844104f

Please sign in to comment.
Something went wrong with that request. Please try again.