Skip to content

Commit

Permalink
add ps console
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Egg committed Aug 18, 2020
1 parent f256985 commit 5d5fed6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lsws1clk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1067,12 +1067,6 @@ fix_opencart_image(){
fi
}

add_entry_hosts(){
if [ "${APP}" = 'prestashop' ]; then
echo "${MYIP} ${DOMAIN_URL}" >> /etc/hosts
fi
}

gen_selfsigned_cert(){
echoG 'Generate Cert'
KEYNAME="${LSDIR}/conf/example.key"
Expand Down Expand Up @@ -1195,6 +1189,14 @@ config_litemage(){
bin/magento config:set --scope=default --scope-code=0 system/full_page_cache/caching_application LITEMAGE
}

install_ps_cache(){
echoG '[Start] Install PrestaShop LSCache'
cd ${DOCROOT}
wget -q https://www.litespeedtech.com/packages/prestashop/litespeedcache.zip
./bin/console prestashop:module install litespeedcache.zip
echoG '[End] PrestaShop LSCach install'
}

check_els_service(){
if [ "${OSNAMEVER}" = 'UBUNTU20' ]; then
echoG 'Check elasticsearch service:'
Expand Down Expand Up @@ -1239,6 +1241,9 @@ setup_lsws(){
if [ "${DF_PHPVER}" != "${PHPVER}" ]; then
sed -i "s/${DF_PHPVER}/${PHPVER}/g" ${LSCONF}
fi
if [ "${APP}" != 'magento' ]; then
sed -i 's/<litemage>2/<litemage>0/g' ${LSVCONF}
fi
gen_selfsigned_cert
}

Expand Down

0 comments on commit 5d5fed6

Please sign in to comment.