diff options
author | James Moger <james.moger@gmail.com> | 2014-10-31 17:05:25 -0400 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2014-10-31 17:05:25 -0400 |
commit | ee116b1bb896d723894882f721e2264f9b9c0b1c (patch) | |
tree | 81e4b6f40936ac91f672b99f37d5a540ea4d091a /src | |
parent | db313d68712cab2b74b4487f93e194bc8d5ed633 (diff) | |
parent | 27f0681863619b285d6979ac1d230a9e3716be7e (diff) | |
download | gitblit-ee116b1bb896d723894882f721e2264f9b9c0b1c.tar.gz gitblit-ee116b1bb896d723894882f721e2264f9b9c0b1c.zip |
Merge pull request #227 from bviktor/develop
Miscellaneous fixes to the Fedora service installer script
Diffstat (limited to 'src')
-rwxr-xr-x | src/main/distrib/linux/install-service-fedora.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/distrib/linux/install-service-fedora.sh b/src/main/distrib/linux/install-service-fedora.sh index 281fa409..4fb43c61 100755 --- a/src/main/distrib/linux/install-service-fedora.sh +++ b/src/main/distrib/linux/install-service-fedora.sh @@ -1,5 +1,5 @@ #!/bin/bash -x -# This script installes gitblit on a system running under systemd. +# This script installs Gitblit on a system running under systemd. # The script assumes the server is running as user giblit # First create a file with the default settings @@ -8,7 +8,6 @@ GITBLIT_PATH=/opt/gitblit GITBLIT_BASE_FOLDER=/opt/gitblit/data GITBLIT_HTTP_PORT=0 GITBLIT_HTTPS_PORT=8443 -GITBLIT_LOG=/var/log/gitblit.log EOF # Create a systemd service file cat > /tmp/gitblit.service << EOF @@ -30,7 +29,5 @@ WantedBy=multi-user.target EOF # Finally copy the files to the destination and register the systemd unit. -sudo su -c "cp /tmp/gitblit.defaults /etc/sysconfig/gitblit && cp /tmp/gitblit.service /usr/lib/systemd/system/" +sudo su -c "cp /tmp/gitblit.defaults /etc/sysconfig/gitblit && cp /tmp/gitblit.service /etc/systemd/system/" sudo su -c "systemctl daemon-reload && systemctl enable gitblit.service && systemctl start gitblit.service" -# Prepare the logfile -sudo su -c "touch /var/log/gitblit.log && chown gitblit:gitblit /var/log/gitblit.log" |