From 307af8fd5a3e74ebcb64ac5bbe57493b59ead233 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Fri, 14 Oct 2022 21:04:20 +0200 Subject: feat: shamelessly copy pkgkit from sr.ht-apkbuilds Copy some code from sourcehut's alpine build[0] to build my own packages. [0]: https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds --- .../reddit-nextcloud-importer.pre-install | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkgs/reddit-nextcloud-importer/reddit-nextcloud-importer.pre-install (limited to 'pkgs/reddit-nextcloud-importer/reddit-nextcloud-importer.pre-install') diff --git a/pkgs/reddit-nextcloud-importer/reddit-nextcloud-importer.pre-install b/pkgs/reddit-nextcloud-importer/reddit-nextcloud-importer.pre-install new file mode 100644 index 0000000..74f1b59 --- /dev/null +++ b/pkgs/reddit-nextcloud-importer/reddit-nextcloud-importer.pre-install @@ -0,0 +1,9 @@ +#!/bin/sh + +user=www-data +group=www-data + +addgroup -S $group 2>/dev/null +adduser -S -D -h /var/lib/$user -s /sbin/nologin -G $group -g $user $user 2>/dev/null + +exit 0 -- cgit v1.2.3