#!/bin/bash
if [[ $(whoami) != "root" ]]; then
  sudo echo
  sudo bash $0
  exit 0
fi


CONF="/opt/systemk/mediaserver/etc/mediaserver.conf"
CRASHNUM="${HOME}/crashnum"
    rm -f "${CONF}" "${CRASHNUM}"
    mv "${CONF}.bak" "${CONF}"
    systemctl restart systemk-mediaserver
