Merge pull request #19 from SansPseudoFix/cli-design
Refacto and highlighting
This commit is contained in:
commit
5654e44ed1
@ -6,7 +6,7 @@ print_help () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Ensure to be root
|
# Ensure to be root
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
echo "Please run as root"
|
echo "Please run as root"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@ -42,7 +42,7 @@ if [ "$mysql_user" = "" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Are you sure to completely delete OpenVPN configurations, the web application (with the MySQL user/database) and the iptables rules? (yes/*)"
|
echo -e "\033[1mAre you sure to completely delete OpenVPN configurations, the web application (with the MySQL user/database) and the iptables rules? (yes/*)\033[0m"
|
||||||
read agree
|
read agree
|
||||||
|
|
||||||
if [ "$agree" != "yes" ]; then
|
if [ "$agree" != "yes" ]; then
|
||||||
@ -71,4 +71,4 @@ iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
|
|||||||
iptables -t nat -D POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
|
iptables -t nat -D POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
|
||||||
iptables -t nat -D POSTROUTING -s 10.8.0.2/24 -o eth0 -j MASQUERADE
|
iptables -t nat -D POSTROUTING -s 10.8.0.2/24 -o eth0 -j MASQUERADE
|
||||||
|
|
||||||
echo "The application has been completely removed"
|
echo "The application has been completely removed!"
|
||||||
|
@ -237,8 +237,11 @@ bower --allow-root install
|
|||||||
chown -R "$user:$group" "$openvpn_admin"
|
chown -R "$user:$group" "$openvpn_admin"
|
||||||
|
|
||||||
|
|
||||||
printf "\n################## Finish ##################\n"
|
printf "\033[1m\n#################################### Finish ####################################\n"
|
||||||
|
|
||||||
echo "Congratulation, you have successfuly setup openvpn-admin. Please, finish the installation by configuring your web server (Apache, NGinx...) and install the web application by visiting http://your-installation/index.php?installation"
|
echo -e "# Congratulations, you have successfully setup openvpn-admin! #\r"
|
||||||
echo "Then, you will be able to run OpenVPN with systemctl start openvpn@server"
|
echo -e "Please, finish the installation by configuring your web server (Apache, NGinx...)"
|
||||||
|
echo -e "and install the web application by visiting http://your-installation/index.php?installation\r"
|
||||||
|
echo -e "Then, you will be able to run OpenVPN with systemctl start openvpn@server\r"
|
||||||
echo "Please, report any issues here https://github.com/Chocobozzz/OpenVPN-Admin"
|
echo "Please, report any issues here https://github.com/Chocobozzz/OpenVPN-Admin"
|
||||||
|
printf "\n################################################################################ \033[0m\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user