#!/bin/sh
[ "$(whoami)" != "root" ] && exec sudo -- "$0" "$@"

sudo cp -r ../../../singNativeOsService /usr/local/
chmod -R +x /usr/local/singNativeOsService/bin/systemctl/*.sh 
sudo cp -r /usr/local/singNativeOsService/bin/turksat.crt /usr/local/share/ca-certificates/
sudo cp -r turksat-imza.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable turksat-imza.service
sudo systemctl start turksat-imza
