Skip to content
Snippets Groups Projects

Resolve "prepare installable debian package"

Merged Piotr Gawron requested to merge 342-prepare-installable-debian-package into master
2 files
+ 8
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 5
0
@@ -21,6 +21,7 @@ if [ "$1" = "configure" ] && [ -z "$2" ]; then
chown -R smasch:smasch /run/gunicorn/
mkdir -p /var/log/smasch
fi
echo "Instal python dependencies"
@@ -41,5 +42,9 @@ if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi
if [ "$1" = "configure" ] && [ -z "$2" ]; then
crontab -u smasch -l 2>/dev/null | grep -v "runcrons" | { cat; echo "*/5 * * * * . /usr/lib/smasch/env/bin/activate && python /usr/lib/smasch/manage.py runcrons >> /var/log/smasch/cronjob.log 2>&1"; } | crontab -u smasch -
fi
#DEBHELPER#
Loading