commit a223a1f687273e29205a58339c4c5bad789ddb5a
parent 72effbd4ed90c004b216e8085d59d8dd827d3328
Author: rexxnor <rexxnor+gnunet@brief.li>
Date: Wed, 6 Mar 2019 23:54:34 +0100
added postinst script to create users
Diffstat:
3 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ run-build_deb:
- cp ../../helpers/ascension.1 debian/ascension.1
- echo "debian/ascension.1" > debian/python3-ascension.manpages
- dh_installman
+ - cp ../../helpers/postinst_ascension.sh debian/postinst
- dpkg-buildpackage -rfakeroot -uc -us
- cd ../../ || exit
- apt install -y ./deb_dist/python3-ascension*.deb
diff --git a/helpers/ciscript.sh b/helpers/ciscript.sh
@@ -9,6 +9,7 @@ cd deb_dist/*/ || exit
cp ../../helpers/ascension.1 debian/ascension.1
echo "debian/ascension.1" > debian/python3-ascension.manpages
dh_installman
+cp ../../helpers/postinst_ascension.sh debian/postinst
dpkg-buildpackage -rfakeroot -uc -us
cd ../../ || exit
apt install -y ./deb_dist/python3-ascension*.deb
diff --git a/helpers/postinst_ascension.sh b/helpers/postinst_ascension.sh
@@ -0,0 +1,3 @@
+adduser --system ascension
+# ok if this fails as gnunet is not yet a dependency
+adduser ascension gnunet