소스 검색

chmod +x bin/*

Bachir Soussi Chiadmi 6 년 전
부모
커밋
e15e231cc5
15개의 변경된 파일23개의 추가작업 그리고 22개의 파일을 삭제
  1. 0 0
      bin/_addUserSite.sh
  2. 2 2
      bin/autoupdate.sh
  3. 0 0
      bin/dotfiles.sh
  4. 2 2
      bin/email.sh
  5. 2 2
      bin/fail2ban.sh
  6. 2 2
      bin/firewall.sh
  7. 0 0
      bin/ftp.sh
  8. 0 0
      bin/gitbarrerepos.sh
  9. 2 2
      bin/knockd.sh
  10. 2 2
      bin/lemp.sh
  11. 3 2
      bin/misc.sh
  12. 2 2
      bin/ssh.sh
  13. 2 2
      bin/upgrade.sh
  14. 2 2
      bin/user.sh
  15. 2 2
      install-debian-server.sh

+ 0 - 0
bin/_addUserSite.sh


+ 2 - 2
bin/autoupdate.sh

@@ -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 - 0
bin/dotfiles.sh


+ 2 - 2
bin/email.sh

@@ -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
 

+ 2 - 2
bin/fail2ban.sh

@@ -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
 

+ 2 - 2
bin/firewall.sh

@@ -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 - 0
bin/ftp.sh


+ 0 - 0
bin/gitbarrerepos.sh


+ 2 - 2
bin/knockd.sh

@@ -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
 

+ 2 - 2
bin/lemp.sh

@@ -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
 

+ 3 - 2
bin/misc.sh

@@ -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

+ 2 - 2
bin/ssh.sh

@@ -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
 

+ 2 - 2
bin/upgrade.sh

@@ -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
 

+ 2 - 2
bin/user.sh

@@ -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
 

+ 2 - 2
install-debian-server.sh

@@ -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