replace netstat by ss on Linux

This commit is contained in:
Jérémy Lecour 2019-04-03 21:02:26 +02:00
parent 93f55bfbb8
commit ad82cc7b7a

View file

@ -236,8 +236,8 @@ done
ps auwwx >${LOCAL_BACKUP_DIR}/ps.out ps auwwx >${LOCAL_BACKUP_DIR}/ps.out
if [ "${SYSTEM}" = "linux" ]; then if [ "${SYSTEM}" = "linux" ]; then
## Dump network connections with netstat ## Dump network connections with ss
netstat -taupen > ${LOCAL_BACKUP_DIR}/netstat.out ss -taupen > ${LOCAL_BACKUP_DIR}/netstat.out
## List Debian packages ## List Debian packages
dpkg -l > ${LOCAL_BACKUP_DIR}/packages dpkg -l > ${LOCAL_BACKUP_DIR}/packages