mirror of
https://github.com/nxshock/gonx.git
synced 2025-07-01 23:53:35 +05:00
Return internal errors to clients
This commit is contained in:
parent
1fe5a70c7c
commit
c4c9bff7c6
2 changed files with 24 additions and 16 deletions
10
PKGBUILD
10
PKGBUILD
|
@ -11,13 +11,13 @@ sha256sums=('SKIP')
|
|||
backup=("etc/$pkgname.conf")
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
go build -o "$pkgname" -ldflags "-linkmode=external -s -w" -buildmode=pie -trimpath -mod=readonly -modcacherw
|
||||
cd $pkgname
|
||||
go build -o $pkgname -ldflags "-linkmode=external -s -w" -buildmode=pie -trimpath -mod=readonly -modcacherw
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
install -Dm755 "$pkgname" "$pkgdir"/usr/bin/$pkgname
|
||||
install -Dm644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf"
|
||||
install -Dm755 $pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
|
||||
install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname
|
||||
install -Dm644 $pkgname.conf $pkgdir/etc/$pkgname.conf
|
||||
install -Dm755 $pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue