remove sudo escalation
This commit is contained in:
parent
c25261a0cc
commit
436649ae06
8
init.sh
8
init.sh
@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
function cmd_install_packages {
|
||||
sudo sh -c "<$1 xargs apt -y install"
|
||||
<$1 xargs apt -y install
|
||||
}
|
||||
|
||||
function cmd_uninstall_packages {
|
||||
sudo sh -c "<$1 xargs apt -y remove"
|
||||
sudo sh -c 'apt -y autoremove'
|
||||
<$1 xargs apt -y remove
|
||||
apt -y autoremove
|
||||
}
|
||||
|
||||
function check_package_list {
|
||||
@ -45,7 +45,7 @@ function install_packages_base {
|
||||
}
|
||||
|
||||
function generate_ssh_key {
|
||||
< /dev/zero ssh-keygen -q -N ""
|
||||
sudo -u $SUDO_USER sh -c '< /dev/zero ssh-keygen -q -N ""'
|
||||
}
|
||||
|
||||
uninstall_packages_unwanted
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user