|
|
|
@ -7,7 +7,7 @@ fi
|
|
|
|
(crontab -l; echo "* */1 * * * sync ; echo 3 > /proc/sys/vm/drop_caches >/dev/null 2>&1")|awk '!x[$0]++'|crontab -
|
|
|
|
(crontab -l; echo "* */1 * * * sync ; echo 3 > /proc/sys/vm/drop_caches >/dev/null 2>&1")|awk '!x[$0]++'|crontab -
|
|
|
|
# apt-get upgrade -y
|
|
|
|
# apt-get upgrade -y
|
|
|
|
######################################################################################################################
|
|
|
|
######################################################################################################################
|
|
|
|
apps=("wget" "git" "sudo" "python3" "python3-pip" "python3-dev" "libffi-dev" "libssl-dev" "cargo" "sed" "default-libmysqlclient-dev" "build-essential")
|
|
|
|
apps=("wget" "git" "sudo" "python3" "python3-pip" "python3-dev" "libffi-dev" "libssl-dev" "cargo" "sed" "default-libmysqlclient-dev" "build-essential" "zip" "unzip")
|
|
|
|
|
|
|
|
|
|
|
|
# Función para verificar e instalar una aplicación
|
|
|
|
# Función para verificar e instalar una aplicación
|
|
|
|
check_and_install() {
|
|
|
|
check_and_install() {
|
|
|
|
@ -924,23 +924,10 @@ sed -i "s/f8f9fa/d0d0d0/g" /opt/FDMR-Monitor2/html/plugins/adminlte/css/adminlt
|
|
|
|
sed -i "s/configFile =.*/configFile = '\/opt\/FDMR-Monitor2\/fdmr-mon.cfg';/g" /opt/FDMR-Monitor2/html/ssconfunc.php
|
|
|
|
sed -i "s/configFile =.*/configFile = '\/opt\/FDMR-Monitor2\/fdmr-mon.cfg';/g" /opt/FDMR-Monitor2/html/ssconfunc.php
|
|
|
|
#sed -i "s/configFile =.*/configFile = '\/opt\/FDMR-Monitor2\/fdmr-mon.cfg';/g" /var/www/fdmr2/ssconfunc.php
|
|
|
|
#sed -i "s/configFile =.*/configFile = '\/opt\/FDMR-Monitor2\/fdmr-mon.cfg';/g" /var/www/fdmr2/ssconfunc.php
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f "/opt/FDMR-Monitor2/html/flags/314.png" ]
|
|
|
|
wget -q --no-check-certificate -r 'https://docs.google.com/uc?export=download&id=1vsviKjpZmL_mWVEW2UstNODGPl8-uNVo' -O /opt/flags.zip &&
|
|
|
|
then
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/314.png
|
|
|
|
sudo unzip -o /opt/flags.zip -d /opt/FDMR-Monitor2/html/flags/ &&
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/315.png
|
|
|
|
rm /opt/flags.zip
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/318.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/319.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/320.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/321.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/322.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/323.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/324.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/325.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/326.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/327.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/328.png
|
|
|
|
|
|
|
|
cp /opt/FDMR-Monitor2/html/flags/310.png /opt/FDMR-Monitor2/html/flags/329.png
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sudo cp fdmr-mon_SAMPLE.cfg fdmr-mon.cfg
|
|
|
|
sudo cp fdmr-mon_SAMPLE.cfg fdmr-mon.cfg
|
|
|
|
sudo chmod 644 fdmr-mon.cfg
|
|
|
|
sudo chmod 644 fdmr-mon.cfg
|
|
|
|
|