#!/bin/sh

if update-service --check "dt-s3-uploader-worker"; then
    true
else
    update-service --add "/etc/sv/dt-s3-uploader-worker" || true
fi

chmod 777 /var/lib/dt-s3-uploader-worker

sv restart dt-s3-uploader-worker || true