Browse Source

function ee_site_cd

bugfixes
harshadyeola 10 years ago
parent
commit
ebd151d2df
  1. 3
      bin/easyengine
  2. 7
      src/modules/site/ee_site_cd.sh

3
bin/easyengine

@ -676,8 +676,7 @@ elif [ "$EE_FIRST" = "cd" ]; then
# Change Directory to $EE_DOMAIN webroot
if [ $? -eq 0 ]; then
cd $(grep root /etc/nginx/sites-available/$EE_DOMAIN | awk '{ print $2 }' | sed 's/;//g') \
|| ee_lib_error "Unable to change directory for $EE_DOMAIN, exit status = " $?
ee_site_cd
fi
# EasyEngine update

7
src/modules/site/ee_site_cd.sh

@ -0,0 +1,7 @@
#CD to Webroot
function ee_site_cd()
{
cd $(grep root /etc/nginx/sites-available/$EE_DOMAIN | awk '{ print $2 }' | sed 's/;//g') \
|| ee_lib_error "Unable to change directory for $EE_DOMAIN, exit status = " $?
}
Loading…
Cancel
Save