@drowkid1
This commit is contained in:
parent
4f8afe8e27
commit
75a5e62e1f
35
init.sh
35
init.sh
@ -370,22 +370,7 @@ case $1 in
|
|||||||
#echo "${sdir[0]}/BotGen.sh /bin/http-server.sh"|xargs chmod +rwx
|
#echo "${sdir[0]}/BotGen.sh /bin/http-server.sh"|xargs chmod +rwx
|
||||||
chmod +rwx ${sdir[0]}/BotGen.sh /bin/http-server.sh
|
chmod +rwx ${sdir[0]}/BotGen.sh /bin/http-server.sh
|
||||||
[[ ! -e /etc/systemd/system/BotGen.service ]] && {
|
[[ ! -e /etc/systemd/system/BotGen.service ]] && {
|
||||||
cat >> /etc/systemd/system/BotGen.service << \EOF
|
wget -O /etc/systemd/system/BotGen.service https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/otros/BotGen.service &>/dev/null 2>&1
|
||||||
[Unit]
|
|
||||||
Description=BotGen by @drowkid1After=network.target
|
|
||||||
StartLimitIntervalSec=0
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/root
|
|
||||||
ExecStart=/bin/bash /etc/adm-db/BotGen.sh -start
|
|
||||||
Restart=always
|
|
||||||
RestartSec=3s
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
msg -bar
|
msg -bar
|
||||||
if systemctl enable BotGen >/dev/null 2>&1; then
|
if systemctl enable BotGen >/dev/null 2>&1; then
|
||||||
if systemctl start BotGen >/dev/null 2>&1; then
|
if systemctl start BotGen >/dev/null 2>&1; then
|
||||||
@ -399,23 +384,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
[[ ! -e /etc/systemd/system/http-server.service ]] && {
|
[[ ! -e /etc/systemd/system/http-server.service ]] && {
|
||||||
cat >> /etc/systemd/system/http-server.service << \EOF
|
wget -O /etc/systemd/system/http-server.service https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/otros/http-server.service &>/dev/null 2>&1
|
||||||
[Unit]
|
|
||||||
Description=HTTP-SERVER by @drowkid1
|
|
||||||
After=network.target
|
|
||||||
StartLimitIntervalSec=0
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/root
|
|
||||||
ExecStart=/bin/http-server.sh -start
|
|
||||||
Restart=always
|
|
||||||
RestartSec=3s
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
if systemctl enable http-server >/dev/null 2>&1;then
|
if systemctl enable http-server >/dev/null 2>&1;then
|
||||||
if systemctl start http-server >/dev/null 2>&1;then
|
if systemctl start http-server >/dev/null 2>&1;then
|
||||||
echo -e "\e[1;32m[+] HTTP-SERVER HABILITADO Y ACTIVADO CORRECTAMENTE [+]"
|
echo -e "\e[1;32m[+] HTTP-SERVER HABILITADO Y ACTIVADO CORRECTAMENTE [+]"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user