From 6acbca3000e177e8b00d24405065e3835730380a Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Fri, 19 Apr 2024 22:39:00 +0700 Subject: [PATCH] Improve dependencies installer & removal --- remove.sh | 4 ++++ scripts/install_dependencies.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/remove.sh b/remove.sh index 224793c..a91fb0a 100755 --- a/remove.sh +++ b/remove.sh @@ -187,6 +187,10 @@ fi ### Remove unnecessary packages ### echo -e "\nCleaning up unnecessary packages..." +if [[ "${FORCE_REMOVE}" == true ]]; then + [ -d /tmp/lemper ] && run rm -fr /tmp/lemper +fi + run apt-get autoremove -q -y && \ run apt-get autoclean -q -y && \ run apt-get clean -q -y diff --git a/scripts/install_dependencies.sh b/scripts/install_dependencies.sh index eb4ae61..51b4348 100755 --- a/scripts/install_dependencies.sh +++ b/scripts/install_dependencies.sh @@ -44,7 +44,7 @@ run apt-get install -q -y \ cmake cron curl dmidecode dnsutils gcc gdb git gnupg2 htop iptables libc-bin libc6-dev \ libcurl4-openssl-dev libgpgme11-dev libssl-dev libpcre3-dev libxml2-dev libxslt1-dev \ libtool locales logrotate lsb-release make net-tools openssh-server openssl pkg-config \ - re2c rsync software-properties-common sasl2-bin snmp sudo sysstat tar tzdata unzip wget \ + re2c rsync software-properties-common sasl2-bin snap snmp sudo sysstat tar tzdata unzip wget \ whois xz-utils zlib1g-dev geoip-bin geoip-database gettext libgeoip-dev libpthread-stubs0-dev uuid-dev # Install Python 3