diff --git a/gitea.service b/gitea.service new file mode 100644 index 0000000..9f34a29 --- /dev/null +++ b/gitea.service @@ -0,0 +1,22 @@ +[Unit] +Description=Gitea (Git with a cup of tea) +After=syslog.target +After=network.target +Requires=postgresql.service + +[Service] +LimitMEMLOCK=infinity +LimitNOFILE=65535 +RestartSec=2s +Type=simple +User=git +Group=git +WorkingDirectory=/var/lib/gitea/ +ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini +Restart=always +Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea +#CapabilityBoundingSet=CAP_NET_BIND_SERVICE +#AmbientCapabilities=CAP_NET_BIND_SERVICE + +[Install] +WantedBy=multi-user.target diff --git a/update.sh b/update.sh index f1aaceb..7d4fb5c 100755 --- a/update.sh +++ b/update.sh @@ -8,7 +8,7 @@ function prettyPrint { } # Grab all service names -declare -a services=('caddy' 'horbiswalls-bot' 'mirror-bot' 'uno-bot') +declare -a services=('caddy' 'gitea' 'horbiswalls-bot' 'mirror-bot' 'uno-bot') # Now loop through each service and install it for service in "${services[@]}"; do