Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if phpversion fix for install #70

Merged
merged 1 commit into from
Apr 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions vstacklet-ubuntu-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,11 @@ function _varnish() {
function _askphpversion() {
echo -e "1) php${green}7.0${normal}"
echo -e "2) php${green}5${normal}"
echo -ne "${yellow}What version of php do you want?${normal} (Default php${green}5${normal}): "; read version
echo -ne "${yellow}What version of php do you want?${normal} (Default php${green}7.0${normal}): "; read version
case $version in
1 | "") PHPVERSION=7.0 ;;
2) PHPVERSION=5 ;;
*) PHPVERSION=5 ;;
*) PHPVERSION=7.0 ;;
esac
#echo "Using php$PHPVERSION"
echo
Expand All @@ -506,7 +506,7 @@ function _askphpversion() {
# install php function (11)
function _php() {
echo -ne "Installing and Adjusting php${green}$PHPVERSION${normal}-fpm w/ OPCode Cache ... "
if [[ "$PHPVERSION" == "7.0" ]];then
if [[ $PHPVERSION=7.0 ]];then
apt-get -y install php7.0 php7.0-fpm php7.0-mbstring php7.0-zip php7.0-mysql php7.0-curl php7.0-gd php7.0-json php7.0-mcrypt php7.0-opcache php7.0-xml >>"${OUTTO}" 2>&1;
sed -i.bak -e "s/post_max_size = 8M/post_max_size = 64M/" \
-e "s/upload_max_filesize = 2M/upload_max_filesize = 92M/" \
Expand Down Expand Up @@ -1079,7 +1079,12 @@ echo -n "${bold}Installing: nano, unzip, dos2unix, htop, iotop, libwww-perl${nor
echo -n "${bold}Installing signed keys for MariaDB, Nginx, and Varnish${normal} ... ";_keys;
echo -n "${bold}Adding trusted repositories${normal} ... ";_repos;
echo -n "${bold}Applying Updates${normal} ... ";_updates;
_asksitename;if [[ ${sitename} == "yes" ]]; then _sitename; elif [[ ${sitename} == "no" ]]; then _nositename; fi
_asksitename;
if [[ ${sitename} == "yes" ]]; then
_sitename;
elif [[ ${sitename} == "no" ]]; then
_nositename;
fi
echo -n "${bold}Installing and Configuring Nginx${normal} ... ";_nginx;
echo -n "${bold}Adjusting Permissions${normal} ... ";_perms;
echo -n "${bold}Installing and Configuring Varnish${normal} ... ";_varnish;
Expand Down