INNER CODE UNIT · Shell

if

magenx/Magento-2-server-installation · magenx.install.latest.sh:397

  dd if=/dev/urandom of=${TAR_FILE} bs=1024 count=25000 >>/dev/null 2>&1
  CPU_TIME=$( (/usr/bin/time -f "%es" tar cfj ${TAR_FILE}.bz2 ${TAR_FILE}) 2>&1 )
  rm -f ${TAR_FILE}*
  _echo ${CPU_TIME}
 _space 3
 # set system_test tested
 ${SQLITE3} "UPDATE system SET system_test = 'I/O:${IO} CPU:${CPU_TIME}';"
 _space 1
 _pause "[] Press [Enter] key to proceed"
 _space 1
fi

_space 1
## ssh service/socket test
if systemctl is-enabled ssh.socket >/dev/null 2>&1; then
  YELLOWTXT "SSH socket is enabled, disabling it"
  systemctl disable --now ssh.socket
  systemctl enable --now ssh.service

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…