Browse Source

Made gitolite path config variable

tags/v1.3
Teknikode 6 years ago
parent
commit
ce567eb06d
3 changed files with 5 additions and 3 deletions
  1. 3
    1
      includes/config.php.default
  2. 1
    1
      includes/delete_account.php
  3. 1
    1
      includes/update_profile.php

+ 3
- 1
includes/config.php.default View File

@@ -111,7 +111,9 @@ $CONF['git_path'] = 'C:\\Git\\bin\\git.exe';
$CONF['git_repo_path'] = array('C:\\Repositories\\Dir\\');
$CONF['git_key_dir'] = array('C:\\cygwin\\var\\keys');
$CONF['gitolite_path'] = '/cygwin/bin/gitolite/';
$CONF['git_key_dir'] = 'C:\\cygwin\\var\\keys';
$CONF['git_user'] = "gituser";

+ 1
- 1
includes/delete_account.php View File

@@ -26,7 +26,7 @@ if(isset($_POST))
}
}
putenv("HOME=/home/git");
$result = shell_exec('bash --login -c "/home/git/gitolite/src/gitolite trigger SSH_AUTHKEYS"');
$result = shell_exec('bash --login -c "'.$CONF['gitolite_path'].'gitolite trigger SSH_AUTHKEYS"');
/*
$r = new minecraftRcon($CONF['minecraft_server'], $CONF['rcon_port'], $CONF['rcon_pass']);

+ 1
- 1
includes/update_profile.php View File

@@ -164,7 +164,7 @@ if(isset($_POST))
}
}
putenv("HOME=/home/git");
$result = shell_exec('bash --login -c "/home/git/gitolite/src/gitolite trigger SSH_AUTHKEYS"');
$result = shell_exec('bash --login -c "'.$CONF['gitolite_path'].'gitolite trigger SSH_AUTHKEYS"');
}
/*

Loading…
Cancel
Save