update service installer

This commit is contained in:
AJ ONeal 2018-05-24 09:26:14 +00:00
父節點 5d8985732e
當前提交 d3022c246e
共有 3 個檔案被更改,包括 8 行新增2 行删除

查看文件

@ -44,10 +44,10 @@ ProtectSystem=full
# and /var/log/gitea because we want a place where logs can go. # 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. # This merely retains r/w access rights, it does not add any new.
# Must still be writable on the host! # 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 # 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. # The following additional security directives only work with systemd v229 or later.
# They further retrict privileges that can be gained by gitea. # They further retrict privileges that can be gained by gitea.

查看文件

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

查看文件

@ -156,6 +156,10 @@ sudo systemctl daemon-reload
sudo systemctl enable $my_app sudo systemctl enable $my_app
sudo systemctl restart $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 "" echo ""
echo "Installed successfully. Try it out:" echo "Installed successfully. Try it out:"