From 256532e82d1b399672a8a7e5b5915ec826ce3e3e Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 11 Nov 2018 23:13:20 +0100 Subject: [PATCH] Took care of some more lintian warnings --- .gitlab-ci.yml | 2 +- package/debian/matemat/DEBIAN/postinst | 5 ++--- package/debian/matemat/DEBIAN/prerm | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6aaf93..3de276f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -66,7 +66,7 @@ build_debian: cat CHANGELOG.md | grep -A 1000 "<"'!'"-- BEGIN CHANGES ${version} -->" | grep -B 1000 "<"'!'"-- END CHANGES ${version} -->" | tail -n +2 | head -n -1 | sed -re 's/^-/ */g' >> package/debian/matemat/usr/share/doc/matemat/changelog echo "\n -- ${PACKAGE_AUTHOR} $(date -R)\n" >> package/debian/matemat/usr/share/doc/matemat/changelog done - - gzip -9 package/debian/matemat/usr/share/doc/matemat/changelog + - gzip -9n package/debian/matemat/usr/share/doc/matemat/changelog - cp -r static/ package/debian/matemat/usr/lib/matemat/static/ - cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/ - python3.6 setup.py egg_info install --root=package/debian/matemat/ --prefix=/usr --optimize=1 diff --git a/package/debian/matemat/DEBIAN/postinst b/package/debian/matemat/DEBIAN/postinst index 28448bc..bf2db9f 100755 --- a/package/debian/matemat/DEBIAN/postinst +++ b/package/debian/matemat/DEBIAN/postinst @@ -12,9 +12,8 @@ if [[ "$1" == "configure" ]]; then useradd --system --create-home --gid matemat --home-dir /var/lib/matemat --shell /usr/sbin/nologin matemat fi - chown matemat:matemat -R /var/lib/matemat - find /var/lib/matemat -type d -exec chmod 0750 {} \; - find /var/lib/matemat -type f -exec chmod 0640 {} \; + chown matemat:matemat /var/lib/matemat + chmod 0750 /var/lib/matemat ln -sf /var/lib/matemat/upload /usr/lib/matemat/static/upload systemctl daemon-reload diff --git a/package/debian/matemat/DEBIAN/prerm b/package/debian/matemat/DEBIAN/prerm index 657a1fc..85ae20e 100755 --- a/package/debian/matemat/DEBIAN/prerm +++ b/package/debian/matemat/DEBIAN/prerm @@ -4,7 +4,6 @@ set -e if [[ "$1" == "remove" ]]; then - systemctl stop matemat.service userdel matemat fi