2022-10-10 21:08:58 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# installation script
|
|
|
|
|
2022-10-26 22:42:13 +03:00
|
|
|
cd || exit
|
|
|
|
mkdir tmp_install
|
|
|
|
cd tmp_install || exit
|
2022-10-27 08:31:55 +03:00
|
|
|
if [ "$1" == 1 ]; then
|
|
|
|
curl https://sertifika.meb.gov.tr/MEB_SERTIFIKASI.cer --output MEB_SERTIFIKASI.cer
|
|
|
|
openssl x509 -inform DER -in MEB_SERTIFIKASI.cer -out MEB_SERTIFIKASI.crt
|
|
|
|
sudo cp MEB_SERTIFIKASI.crt /usr/local/share/ca-certificates/
|
|
|
|
sudo chmod 644 /usr/local/share/ca-certificates/MEB_SERTIFIKASI.crt
|
|
|
|
sudo update-ca-certificates
|
|
|
|
fi
|
2022-10-26 22:42:13 +03:00
|
|
|
wget https://github.com/asandikci/iflbot-setup/archive/refs/heads/main.tar.gz
|
|
|
|
tar -xzvf main.tar.gz
|
|
|
|
cd iflbot-setup-main || exit
|
2022-10-26 22:45:26 +03:00
|
|
|
cd src || exit
|
2022-10-26 22:47:42 +03:00
|
|
|
ls
|
2022-10-26 22:45:26 +03:00
|
|
|
chmod +x prerequisites.sh
|
|
|
|
chmod +x applications.sh
|
|
|
|
bash .prerequisites.sh
|
|
|
|
bash .applications.sh
|
2022-10-27 08:31:55 +03:00
|
|
|
cp franneck94.c-cpp-runner-4.1.2 /home/"$USER"/.vscode/extensions/
|
|
|
|
cd || exit
|
|
|
|
rm -r tmp_install
|
|
|
|
rmdir tmp_install
|