nxshock
2021-04-03 21:30:51 +05:00
committed by GitHub
parent a41c01c1f8
commit 7bc0632ed5
+2 -5
View File
@@ -39,11 +39,6 @@ mkdir -p /tmp/$PKGNAME/
mkdir -p /tmp/$PKGNAME/debian/ mkdir -p /tmp/$PKGNAME/debian/
mkdir -p /tmp/$PKGNAME/usr/bin/ mkdir -p /tmp/$PKGNAME/usr/bin/
mkdir -p /tmp/$PKGNAME/etc/systemd/system/ mkdir -p /tmp/$PKGNAME/etc/systemd/system/
mkdir -p /tmp/$PKGNAME/usr/lib/sysusers.d/
cat > /tmp/$PKGNAME/usr/lib/sysusers.d/alfis.sysusers << EOF
u alfis - "alfis user"
EOF
cat > /tmp/$PKGNAME/debian/changelog << EOF cat > /tmp/$PKGNAME/debian/changelog << EOF
Please see https://github.com/Revertron/Alfis/ Please see https://github.com/Revertron/Alfis/
@@ -77,6 +72,8 @@ EOF
cat > /tmp/$PKGNAME/debian/postinst << EOF cat > /tmp/$PKGNAME/debian/postinst << EOF
#!/bin/sh #!/bin/sh
id -u somename &>/dev/null || useradd --system alfis || echo "Failed to create user 'alfis' - please create it manually and reinstall"
if ! getent group alfis 2>&1 > /dev/null; then if ! getent group alfis 2>&1 > /dev/null; then
groupadd --system --force alfis || echo "Failed to create group 'alfis' - please create it manually and reinstall" groupadd --system --force alfis || echo "Failed to create group 'alfis' - please create it manually and reinstall"
fi fi