Skip to content

Commit

Permalink
Improve what is displayed during installation process
Browse files Browse the repository at this point in the history
  • Loading branch information
pothi committed Apr 29, 2021
1 parent e848d4f commit 146cfa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions scripts/linux-tweaks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi

#--- Common for all users ---#
echo Setting up linux tweaks...
echo -----------------------------------------------------------------------------
# echo -----------------------------------------------------------------------------

mkdir -p /etc/skel/{.aws,.cache,.composer,.config/bash,.gnupg,.gsutil,.local/bin,.nano,.npm,.npm-global,.nvm,.selected-editor,.ssh,.well-known,.wp-cli} &> /dev/null
mkdir -p /etc/skel/{backups/{full-backups,db-backups},git,log,scripts,sites,tmp} &> /dev/null
Expand Down Expand Up @@ -102,14 +102,14 @@ sed -i '0,/PubkeyAuthentication/I s/no/yes/' $sshd_config_file
# else
# echo 'Cool. Things seem fine.'
# echo "Restarting SSH daemon..."
printf '%-72s' "Restarting SSH daemon..."
# printf '%-72s' "Restarting SSH daemon..."
systemctl restart sshd &> /dev/null
if [ $? -ne 0 ]; then
echo 'Something went wrong while restarting SSH! See below...'; echo; echo;
systemctl status sshd
else
# else
# echo '... SSH daemon restarted!'
echo done.
# echo done.
fi
# fi

Expand Down Expand Up @@ -172,5 +172,5 @@ file_watchers_limit_sysctl_file='/etc/sysctl.d/60-file-watchers-limit-local.conf
printf "fs.inotify.max_user_watches = 524288\n" > $file_watchers_limit_sysctl_file &> /dev/null
sysctl -p $file_watchers_limit_sysctl_file

echo -------------------------------------------------------------------------
# echo -------------------------------------------------------------------------
echo ... linux tweaks are done.
2 changes: 1 addition & 1 deletion scripts/nginx-installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ case "$codename" in
;;
esac

echo ... done setting up Nginx!
echo ... done installing up Nginx!

0 comments on commit 146cfa3

Please sign in to comment.