chmod +x bin/*

This commit is contained in:
Bachir Soussi Chiadmi 2018-04-07 11:34:55 +02:00
parent c1eefcd6fc
commit e15e231cc5
15 changed files with 23 additions and 22 deletions

0
bin/_addUserSite.sh Normal file → Executable file
View File

4
bin/autoupdate.sh Normal file → Executable file
View File

@ -11,8 +11,8 @@ echo '\033[35m
# https://www.howtoforge.com/how-to-configure-automatic-updates-on-debian-wheezy
# https://www.bisolweb.com/tutoriels/serveur-vps-ovh-partie-5-installation-apticron/
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

0
bin/dotfiles.sh Normal file → Executable file
View File

4
bin/email.sh Normal file → Executable file
View File

@ -9,8 +9,8 @@ echo '\033[35m
\033[0m'
echo "\033[35;1mEnable mail sending for php \033[0m"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

4
bin/fail2ban.sh Normal file → Executable file
View File

@ -11,8 +11,8 @@ echo '\033[35m
\033[0m'
echo "\033[35;1mInstalling fall2ban \033[0m"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

4
bin/firewall.sh Normal file → Executable file
View File

@ -11,8 +11,8 @@ echo '\033[35m
\033[0m'
echo "\033[35;1mInstalling ufw and setup firewall (allowing only ssh and http) \033[0m"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

0
bin/ftp.sh Normal file → Executable file
View File

0
bin/gitbarrerepos.sh Normal file → Executable file
View File

4
bin/knockd.sh Normal file → Executable file
View File

@ -11,8 +11,8 @@ echo '\033[35m
\033[0m'
echo "\033[35;1mInstalling knockd to control ssh port opening\033[0m"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

4
bin/lemp.sh Normal file → Executable file
View File

@ -10,8 +10,8 @@ echo '\033[35m
\033[0m'
echo "\033[35;1mLEMP server (Nginx Mysql Php-fpm) \033[0m"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

5
bin/misc.sh Normal file → Executable file
View File

@ -11,10 +11,11 @@ echo '\033[35m
\033[0m'
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
sleep 2
apt-get --yes --force-yes install vim curl
sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen

4
bin/ssh.sh Normal file → Executable file
View File

@ -9,8 +9,8 @@ echo '\033[35m
/____/____/_/ /_/
\033[0m'
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

4
bin/upgrade.sh Normal file → Executable file
View File

@ -10,8 +10,8 @@ echo '\033[35m
\____/_/ \____/_/ |_/_/ |_/_____/_____/
\033[0m'
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

4
bin/user.sh Normal file → Executable file
View File

@ -9,8 +9,8 @@ echo '\033[35m
\033[0m'
echo "\033[35;1mCreate new user (you will be asked a user name and a password) \033[0m"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi

View File

@ -15,8 +15,8 @@ echo '\033[35m
\033[0m'
echo "\033[35;1mThis script has been tested only on Linux Debian 9 \033[0m"
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi