Browse Source

Made gitolite path config variable

pull/24/head
Teknikode 8 years ago
parent
commit
ce567eb06d
  1. 4
      includes/config.php.default
  2. 2
      includes/delete_account.php
  3. 2
      includes/update_profile.php

4
includes/config.php.default

@ -111,7 +111,9 @@ $CONF['git_path'] = 'C:\\Git\\bin\\git.exe'; @@ -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";

2
includes/delete_account.php

@ -26,7 +26,7 @@ if(isset($_POST)) @@ -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']);

2
includes/update_profile.php

@ -164,7 +164,7 @@ if(isset($_POST)) @@ -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