diff options
author | Caleb Maclennan | 2017-04-11 16:51:26 +0300 |
---|---|---|
committer | Caleb Maclennan | 2017-04-11 16:51:26 +0300 |
commit | 2ac4e3c19ed6d14a533423d6ac96b8d7b30f81e6 (patch) | |
tree | 0f6320c507ca108668f16a7cba49c411f508d8ee /PKGBUILD | |
parent | bdba626d1bca1eb3afb086caa82db9a5323d76a4 (diff) | |
download | aur-2ac4e3c19ed6d14a533423d6ac96b8d7b30f81e6.tar.gz |
Get user creation working
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -24,16 +24,13 @@ depends=( ) source=("git://github.com/tootsuite/${pkgname%-git}.git#branch=$_branch") sha256sums=('SKIP') +install=mastodon.install _user=mastodon -_homedir="/var/lib/${pkgname}" -_shell="/bin/false" +_homedir=/var/lib/mastodon +_shell=/bin/false pkgver() { cd "${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/-/_/g' } -post_install() { - getent group ${_user} > /dev/null || groupadd ${_user} > /dev/null - getent passwd ${_user} > /dev/null || useradd -d ${_homedir} -g ${_user} -s ${_shell} ${_user} > /dev/null -} |