Initial commit
This commit is contained in:
parent
824f0f0f17
commit
89d1239c1b
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,6 @@ CUR_HOME=$(compgen -f -- /home/bot*)
|
||||||
cd "$CUR_HOME" || exit
|
cd "$CUR_HOME" || exit
|
||||||
mkdir tmp_install
|
mkdir tmp_install
|
||||||
cd tmp_install || exit
|
cd tmp_install || exit
|
||||||
sudo apt install curl -y
|
|
||||||
if [ "$1" == 1 ]; then
|
if [ "$1" == 1 ]; then
|
||||||
wget http://sertifika.meb.gov.tr/MEB_SERTIFIKASI.cer
|
wget http://sertifika.meb.gov.tr/MEB_SERTIFIKASI.cer
|
||||||
openssl x509 -inform DER -in MEB_SERTIFIKASI.cer -out MEB_SERTIFIKASI.crt
|
openssl x509 -inform DER -in MEB_SERTIFIKASI.cer -out MEB_SERTIFIKASI.crt
|
||||||
|
@ -12,6 +11,12 @@ if [ "$1" == 1 ]; then
|
||||||
sudo chmod 644 /usr/local/share/ca-certificates/MEB_SERTIFIKASI.crt
|
sudo chmod 644 /usr/local/share/ca-certificates/MEB_SERTIFIKASI.crt
|
||||||
sudo update-ca-certificates
|
sudo update-ca-certificates
|
||||||
fi
|
fi
|
||||||
|
if [ "$1" == 2 ]; then
|
||||||
|
sudo cp "$CUR_HOME"/Desktop/MEB_SERTIFIKASI.crt /usr/local/share/ca-certificates/
|
||||||
|
sudo chmod 644 /usr/local/share/ca-certificates/MEB_SERTIFIKASI.crt
|
||||||
|
sudo update-ca-certificates
|
||||||
|
fi
|
||||||
|
sudo apt install curl -y
|
||||||
wget https://github.com/asandikci/iflbot-setup/archive/refs/heads/main.tar.gz
|
wget https://github.com/asandikci/iflbot-setup/archive/refs/heads/main.tar.gz
|
||||||
tar -xzvf main.tar.gz
|
tar -xzvf main.tar.gz
|
||||||
cd iflbot-setup-main || exit
|
cd iflbot-setup-main || exit
|
||||||
|
|
Loading…
Reference in a new issue