use apt instead of apt-get, looks nicer
This commit is contained in:
parent
095e3c71c8
commit
b9871ea63e
44
install.sh
44
install.sh
|
@ -28,10 +28,12 @@ base_applications() {
|
|||
|
||||
echo "update and installing baseapps..."
|
||||
|
||||
apt-get update
|
||||
apt-get upgrade
|
||||
apt update
|
||||
apt upgrade
|
||||
|
||||
apt-get install -y \
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt install -y \
|
||||
apt-transport-https \
|
||||
automake \
|
||||
bash-completion \
|
||||
|
@ -67,26 +69,29 @@ base_applications() {
|
|||
--no-install-recommends
|
||||
|
||||
echo "... DONE... cleaning up\n\n"
|
||||
apt-get autoremove
|
||||
apt-get autoclean
|
||||
apt-get clean
|
||||
apt autoremove
|
||||
apt autoclean
|
||||
apt clean
|
||||
|
||||
}
|
||||
|
||||
install_server_base() {
|
||||
|
||||
echo "update and installing server base tools..."
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt update
|
||||
apt install -y \
|
||||
fail2ban \
|
||||
logwatch \
|
||||
unattended-upgrades \
|
||||
--no-install-recommends
|
||||
|
||||
echo "... DONE... cleaning up\n\n"
|
||||
apt-get autoremove
|
||||
apt-get autoclean
|
||||
apt-get clean
|
||||
apt autoremove
|
||||
apt autoclean
|
||||
apt clean
|
||||
|
||||
echo "setting up logwatch..."
|
||||
cat <<-EOF > /etc/cron.daily/00logwatch
|
||||
|
@ -126,8 +131,11 @@ no_suspend() {
|
|||
install_i3() {
|
||||
|
||||
echo "update and installing i3wm and some tools..."
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt update
|
||||
apt install -y \
|
||||
alsa-utils \
|
||||
clipit \
|
||||
emacs25 \
|
||||
|
@ -147,9 +155,9 @@ install_i3() {
|
|||
--no-install-recommends
|
||||
|
||||
echo "... DONE... cleaning up\n\n"
|
||||
apt-get autoremove
|
||||
apt-get autoclean
|
||||
apt-get clean
|
||||
apt autoremove
|
||||
apt autoclean
|
||||
apt clean
|
||||
|
||||
no_suspend
|
||||
|
||||
|
@ -326,6 +334,10 @@ main() {
|
|||
base_applications
|
||||
|
||||
install_docker
|
||||
|
||||
install_compose
|
||||
elif [[ $cmd == "docker" ]]; then
|
||||
install_docker
|
||||
elif [[ $cmd == "dotfiles" ]]; then
|
||||
get_dotfiles
|
||||
elif [[ $cmd == "go" ]]; then
|
||||
|
|
Loading…
Reference in New Issue