fix: ci
This commit is contained in:
parent
1521aa96ce
commit
882ba34e47
8 changed files with 1 additions and 89 deletions
|
@ -1,27 +0,0 @@
|
|||
# Maintainer: s3lph <account-gitlab-ideynizv@kernelpanic.lol>
|
||||
pkgname=spaceapi-server
|
||||
pkgver=__VERSION__
|
||||
pkgrel=1
|
||||
pkgdesc="Lightweight SpaceAPI endpoint server"
|
||||
arch=('any')
|
||||
url="https://gitlab.com/s3lph/spaceapi-server"
|
||||
license=('MIT')
|
||||
groups=()
|
||||
depends=('python'
|
||||
'python-yaml'
|
||||
'python-bottle')
|
||||
makedepends=('python-setuptools')
|
||||
checkdepends=()
|
||||
optdepends=()
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=('etc/spaceapi-server/config.yaml'
|
||||
'etc/spaceapi-server/template.yaml'
|
||||
'etc/spaceapi-server/plugins')
|
||||
install=$pkgname.install
|
||||
changelog=$pkgname.changelog
|
||||
|
||||
package() {
|
||||
cp -r ../spaceapi-server/* ../pkg/spaceapi-server/
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
|
||||
post_install() {
|
||||
|
||||
if ! getent group spaceapi-server >/dev/null; then
|
||||
groupadd --system spaceapi-server
|
||||
fi
|
||||
|
||||
if ! getent passwd spaceapi-server >/dev/null; then
|
||||
useradd --system --create-home --gid spaceapi-server --home-dir /var/lib/spaceapi-server \
|
||||
--shell /usr/sbin/nologin spaceapi-server
|
||||
fi
|
||||
|
||||
chown root:spaceapi-server /etc/spaceapi-server
|
||||
chmod 0750 /etc/spaceapi-server
|
||||
|
||||
systemctl daemon-reload || true
|
||||
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
|
||||
systemctl stop spaceapi-server.service
|
||||
userdel spaceapi-server
|
||||
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
address: "::"
|
||||
port: 8080
|
||||
template: /etc/spaceapi-server/template.json
|
||||
plugins_dir: /etc/spaceapi-server/plugins
|
||||
plugins: {}
|
|
@ -1,14 +0,0 @@
|
|||
---
|
||||
api: "0.13"
|
||||
space: Example
|
||||
logo: https://example.org/logo.png
|
||||
url: https://example.org
|
||||
location:
|
||||
lat: 0.0
|
||||
lon: 0.0
|
||||
state:
|
||||
open: null
|
||||
contact:
|
||||
email: example@example.org
|
||||
issue_report_channels:
|
||||
- email
|
|
@ -1,10 +0,0 @@
|
|||
[Unit]
|
||||
Description=Lightweight SpaceAPI Endpoint Server
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python -m spaceapi_server /etc/spaceapi-server/config.yaml
|
||||
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||
User=spaceapi-server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,3 +1,3 @@
|
|||
/etc/spaceapi-server/config.yaml
|
||||
/etc/spaceapi-server/template.yaml
|
||||
/etc/spaceapi-server/plugins/example.py
|
||||
/etc/spaceapi-server/plugins/filestate.py
|
||||
|
|
Loading…
Reference in a new issue