Skip to content

Commit

Permalink
Update phartools.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavius12 committed May 2, 2015
1 parent ff54314 commit fba7398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phartools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if type php >/dev/null 2>&1; then #Check if PHP is installed
php phartools.php $@
else
while true; do
read -p "PHP is not installed! Do you want to install it now (y, n)?" yn
read -p "PHP is not installed! Do you want to install it now (y, n)? " yn
case $yn in
[Yy]* ) sudo apt-get install php5-cli; sudo sed -i.bak 's/^;phar.readonly/phar.readonly/' /etc/php5/cli/php.ini; sudo sed -i.bak 's/phar.readonly = On/phar.readonly = 0/' /etc/php5/cli/php.ini; exit;; #based on default php.ini config (by default ;phar.readonly = 0 or phar.readonly = On)
[Nn]* ) echo "PHP installation cancelled"; exit;;
Expand Down

0 comments on commit fba7398

Please sign in to comment.