Fix: adduser instead of useradd in postinst for all packages
This commit is contained in:
parent
3cfacb03fb
commit
686db54336
|
@ -3,7 +3,7 @@
|
||||||
pkgname="dufs"
|
pkgname="dufs"
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgver="0.35.0"
|
pkgver="0.35.0"
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="A file server that supports static serving, uploading, searching, accessing control, webdav..."
|
pkgdesc="A file server that supports static serving, uploading, searching, accessing control, webdav..."
|
||||||
url="https://github.com/sigoden/dufs"
|
url="https://github.com/sigoden/dufs"
|
||||||
maintainer="Leafee98 <me@leafee98.com>"
|
maintainer="Leafee98 <me@leafee98.com>"
|
||||||
|
@ -25,7 +25,7 @@ function package {
|
||||||
function debian_postinst {
|
function debian_postinst {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
useradd --system dufs
|
adduser --system dufs
|
||||||
mkdir -p /srv/dufs
|
mkdir -p /srv/dufs
|
||||||
chown dufs:dufs -R /srv/dufs
|
chown dufs:dufs -R /srv/dufs
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname="forgejo"
|
pkgname="forgejo"
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgver="1.20.1-0"
|
pkgver="1.20.1-0"
|
||||||
pkgdesc="A painless selfhost git service."
|
pkgdesc="A painless selfhost git service."
|
||||||
url="https://codeberg.org/forgejo/forgejo"
|
url="https://codeberg.org/forgejo/forgejo"
|
||||||
|
@ -27,7 +27,7 @@ mkdir -p /var/lib/forgejo
|
||||||
mkdir -p /etc/forgejo/conf
|
mkdir -p /etc/forgejo/conf
|
||||||
touch /etc/forgejo/conf/app.ini
|
touch /etc/forgejo/conf/app.ini
|
||||||
|
|
||||||
useradd --system git
|
adduser --system git
|
||||||
chown -R git:git /var/lib/forgejo /etc/forgejo /etc/forgejo/app.ini
|
chown -R git:git /var/lib/forgejo /etc/forgejo /etc/forgejo/app.ini
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
pkgname="plik-bin"
|
pkgname="plik-bin"
|
||||||
arch="amd64"
|
arch="amd64"
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgver="1.3.7"
|
pkgver="1.3.7"
|
||||||
pkgdesc="Plik is a temporary file upload system (Wetransfer like) in Go."
|
pkgdesc="Plik is a temporary file upload system (Wetransfer like) in Go."
|
||||||
_arch="amd64"
|
_arch="amd64"
|
||||||
|
@ -29,7 +29,7 @@ function package {
|
||||||
function debian_postinst {
|
function debian_postinst {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
useradd --system plik
|
adduser --system plik
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue