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

sudo cp -r ../../../signNativeOsService /usr/local/
chmod -R +x /usr/local/signNativeOsService/bin/systemctl/*.sh 
sudo cp -r /usr/local/signNativeOsService/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
