Browse Source

required package

bookworm 0.1.7
pvincent@x260 4 years ago
parent
commit
0cf0e68b72
  1. 20
      src/main

20
src/main

@ -31,9 +31,23 @@ function askConfirmation (){
[ `id -u` -eq 0 ] && echo 'normal user required' && exit -1 [ `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 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 ## openssh-server
PGKNAME='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 memory-display false
gsettings set org.gnome.shell.extensions.system-monitor net-display true 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-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 icon-display false
gsettings set org.gnome.shell.extensions.system-monitor disk-display false gsettings set org.gnome.shell.extensions.system-monitor disk-display false
else else
@ -141,6 +156,7 @@ if [ $? -ne 0 ] ; then
LOGOUT_REQUIRED=true LOGOUT_REQUIRED=true
fi fi
if [[ $LOGOUT_REQUIRED == true ]];then if [[ $LOGOUT_REQUIRED == true ]];then
echo echo
echo "****************************************************************" echo "****************************************************************"

Loading…
Cancel
Save