update service installer

This commit is contained in:
AJ ONeal 2018-05-24 09:26:14 +00:00
parent 5d8985732e
commit d3022c246e
3 changed files with 8 additions and 2 deletions

View File

@ -44,10 +44,10 @@ ProtectSystem=full
# and /var/log/gitea because we want a place where logs can go.
# This merely retains r/w access rights, it does not add any new.
# Must still be writable on the host!
ReadWriteDirectories=/opt/telebitd
ReadWriteDirectories=/opt/telebitd /etc/telebit
# Note: in v231 and above ReadWritePaths has been renamed to ReadWriteDirectories
; ReadWritePaths=/opt/telebitd
; ReadWritePaths=/opt/telebitd /etc/telebit
# The following additional security directives only work with systemd v229 or later.
# They further retrict privileges that can be gained by gitea.

View File

@ -1,3 +1,5 @@
servernames: []
email: 'jon@example.com'
agree_tos: true
community_member: true
vhost: /srv/www/:hostname

View File

@ -156,6 +156,10 @@ sudo systemctl daemon-reload
sudo systemctl enable $my_app
sudo systemctl restart $my_app
echo "Adding example config"
echo "sudo rsync -av examples/$my_app.yml /etc/$my_user/$my_app.yml"
sudo rsync -av examples/$my_app.yml /etc/$my_user/$my_app.yml
echo ""
echo ""
echo "Installed successfully. Try it out:"