Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
polytan02 committed Apr 14, 2015
1 parent f4f0747 commit 9d1b08c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 3_conf_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ if [ $port == 'y' ];
read -e -p "Hit ENTER to pursue... ";
else
# Open port in firewall
yunohost firewall allow TCP $port;
echo -e "\n" ; yunohost firewall allow TCP $port;
sed -i "s/Port 22/Port $port/g" /etc/ssh/sshd_config;
echo -e "\n$ok SSH port changed to $port\n";
fi;
Expand Down
7 changes: 3 additions & 4 deletions 4_adjust_ssl_conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,16 @@ if [ $nginx == 'y' ];
then echo -e "\n" ; read -e -p "Indicate dhparam value (2048 or 4096) : " -i "2048" param;
if [[ $param =~ ^[-+]?[0-9]+$ ]];
then openssl dhparam -out /etc/ssl/private/dh$param$domain.pem -outform PEM -2 $param;
echo -e "\n$ok dhparam$param$domain.pem generated";
echo -e "\n$ok dh$param$domain.pem generated";
# Adjustment of ngingx.conf for domain
dom_nginx=/etc/nginx/conf.d/$domain.conf;
sed -i "s|#ssl_dhparam|ssl_dhparam|g" $dom_nginx;
sed -i "s|private/dh2048|private/dh$param$domain|g" $dom_nginx;
echo -e "\n$ok Configuring nginx to use dhparam$param$domain.pem";
echo -e "\n$ok Configuring nginx to use dh$param$domain.pem";
else
echo -e "\n$failed Value must be an integer (multiple of 2) \n";
echo -e "\nAborting before doing anything\n";
read -p "Hit ENTER to end this script... ";
exit ;
read -p "Hit ENTER to skip to next step... ";
fi;
else echo -e "\n$info Aborting before doing anything\n";
read -p "Hit ENTER to end this script... ";
Expand Down

0 comments on commit 9d1b08c

Please sign in to comment.