forked from s3lph/matemat
Took care of some more lintian warnings
This commit is contained in:
parent
df4d397a1f
commit
256532e82d
3 changed files with 3 additions and 5 deletions
|
@ -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
|
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
|
echo "\n -- ${PACKAGE_AUTHOR} $(date -R)\n" >> package/debian/matemat/usr/share/doc/matemat/changelog
|
||||||
done
|
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 static/ package/debian/matemat/usr/lib/matemat/static/
|
||||||
- cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/
|
- 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
|
- python3.6 setup.py egg_info install --root=package/debian/matemat/ --prefix=/usr --optimize=1
|
||||||
|
|
|
@ -12,9 +12,8 @@ if [[ "$1" == "configure" ]]; then
|
||||||
useradd --system --create-home --gid matemat --home-dir /var/lib/matemat --shell /usr/sbin/nologin matemat
|
useradd --system --create-home --gid matemat --home-dir /var/lib/matemat --shell /usr/sbin/nologin matemat
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown matemat:matemat -R /var/lib/matemat
|
chown matemat:matemat /var/lib/matemat
|
||||||
find /var/lib/matemat -type d -exec chmod 0750 {} \;
|
chmod 0750 /var/lib/matemat
|
||||||
find /var/lib/matemat -type f -exec chmod 0640 {} \;
|
|
||||||
ln -sf /var/lib/matemat/upload /usr/lib/matemat/static/upload
|
ln -sf /var/lib/matemat/upload /usr/lib/matemat/static/upload
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
|
@ -4,7 +4,6 @@ set -e
|
||||||
|
|
||||||
if [[ "$1" == "remove" ]]; then
|
if [[ "$1" == "remove" ]]; then
|
||||||
|
|
||||||
systemctl stop matemat.service
|
|
||||||
userdel matemat
|
userdel matemat
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue