#!/bin/bash
set -e

CONFIG=/boot/config/plugins/backupper
mkdir -p "$CONFIG" /run/backupper /var/lib/backupper
chmod 0700 "$CONFIG"
chmod 0750 /run/backupper /var/lib/backupper

if [ -x /etc/rc.d/rc.backupper ]; then
  /etc/rc.d/rc.backupper restart || true
fi

