Merge "Add the new gerrit systemctl file to init"

This commit is contained in:
Shawn Pearce 2017-04-26 09:56:07 +00:00 committed by Gerrit Code Review
commit fda2cdcc0c
2 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,10 @@ public class SitePathInitializer {
extract(site.gerrit_sh, getClass(), "gerrit.sh");
chmod(0755, site.gerrit_sh);
extract(site.gerrit_service, getClass(), "gerrit.service");
chmod(0755, site.gerrit_service);
extract(site.gerrit_service, getClass(), "gerrit.socket");
chmod(0755, site.gerrit_socket);
chmod(0700, site.tmp_dir);
extractMailExample("Abandoned.soy");

View File

@ -46,6 +46,8 @@ public final class SitePaths {
public final Path index_dir;
public final Path gerrit_sh;
public final Path gerrit_service;
public final Path gerrit_socket;
public final Path gerrit_war;
public final Path gerrit_config;
@ -85,6 +87,8 @@ public final class SitePaths {
index_dir = p.resolve("index");
gerrit_sh = bin_dir.resolve("gerrit.sh");
gerrit_service = bin_dir.resolve("gerrit.service");
gerrit_socket = bin_dir.resolve("gerrit.socket");
gerrit_war = bin_dir.resolve("gerrit.war");
gerrit_config = etc_dir.resolve("gerrit.config");