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