标签:int lamp define def efi UNC put erro amp
#!/bin/sh#define menu function
menu(){
cat << EOF
1.[install lamp]
2.[install lnmp]
3.[exit]
please input the num you want:
EOF
}
menu
read num
[ "$num" = "1" ]&&{
echo "start install lamp"
[ -x /opt/shell/lamp.sh ]||exit 2
sh /opt/shell/lamp.sh
exit 0
}
[ "$num" = "2" ]&&{
echo "start install lnmp"
[ -x /opt/shell/lnmp.sh ]||exit 2
sh /opt/shell/lnmp.sh
exit 0
}
[ "$num" = "3" ]&&{
echo "bye"
exit 0
}
echo "input error"
exit 0
标签:int lamp define def efi UNC put erro amp
原文地址:https://blog.51cto.com/1009516/2426905