From 0cf0e68b72b830a615109b053f1a352bce624723 Mon Sep 17 00:00:00 2001 From: "pvincent@x260" Date: Sun, 21 Mar 2021 18:36:36 +0400 Subject: [PATCH] required package --- src/main | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/main b/src/main index 131aa92..19a42f7 100755 --- a/src/main +++ b/src/main @@ -31,9 +31,23 @@ function askConfirmation (){ [ `id -u` -eq 0 ] && echo 'normal user required' && exit -1 -ALLOWED_USERS=$(id -un) #CUSTOMIZE if needed! -GIT_REPOSITORY_RAW="https://git.artcode.re/pvincent/debian-gnome/raw/master" +# variables and constants + LOGOUT_REQUIRED=false +GIT_REPOSITORY_RAW="https://git.artcode.re/pvincent/debian-gnome/raw/master" +ALLOWED_USERS=$(id -un) #CUSTOMIZE if needed! +REQUIRED_PACKAGES=(git wget curl htop) + +# required packages +for package in ${REQUIRED_PACKAGES[@]}; do + runVoid dpkg-query --status $package + if [ $? -ne 0 ] ; then + echo -n "installing package <$package> ... " ; + sudo apt install -y $package + echo "DONE" + fi +done + ## openssh-server PGKNAME='openssh-server' @@ -128,6 +142,7 @@ if [ $? -ne 0 ] ; then gsettings set org.gnome.shell.extensions.system-monitor memory-display false gsettings set org.gnome.shell.extensions.system-monitor net-display true gsettings set org.gnome.shell.extensions.system-monitor net-style digit + gsettings set org.gnome.shell.extensions.system-monitor net-show-text false gsettings set org.gnome.shell.extensions.system-monitor icon-display false gsettings set org.gnome.shell.extensions.system-monitor disk-display false else @@ -141,9 +156,10 @@ if [ $? -ne 0 ] ; then LOGOUT_REQUIRED=true fi + if [[ $LOGOUT_REQUIRED == true ]];then echo echo "****************************************************************" echo "please consider logging out, then log in again to apply changes!" echo "****************************************************************" -fi \ No newline at end of file +fi