#!/bin/sh

trap 'exit 0' TERM

while :
do
    chown -R 33:33 /opt/chandler/extensions/available/openvk/storage
    chown -R 33:33 /opt/chandler/extensions/available/openvk/tmp/api-storage/audios
    chown -R 33:33 /opt/chandler/extensions/available/openvk/tmp/api-storage/photos
    chown -R 33:33 /opt/chandler/extensions/available/openvk/tmp/api-storage/videos
    chown -R 33:33 /var/log/openvk

    sleep 600
done