-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsamp.sh
20 lines (19 loc) · 872 Bytes
/
samp.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
bold=$(echo -en "\e[1m")
lightgreen=$(echo -en "\e[92m")
if [[ -f "./samp03svr" ]]; then
echo "${bold}${lightgreen}==> O Samp Linux foi detectado, O Sistema de download não será necessario. <=="
echo "${bold}${lightgreen}==> Setando permissões padrões. <=="
chmod 777 samp03svr
echo "${bold}${lightgreen}==> Iniciando Servidor. <=="
./samp03svr
else
echo "${bold}${lightgreen}==> O Samp Linux Não Detectado, O Sistema de download será iniciado. <=="
curl -L -o /home/container/samp03svr "https://github.com/drylian/tralhas/releases/latest/download/samp03svr"
echo "${bold}${lightgreen}==> Download Terminado, iniciando configurações padrões. <=="
echo "${bold}${lightgreen}==> Setando permissões padrões. <=="
chmod 777 samp03svr
echo "${bold}${lightgreen}==> Iniciando Servidor. <=="
./samp03svr
fi
done