install litespeed with wordpress
This commit is contained in:
parent
9297ea6f82
commit
2b3282599c
|
@ -5,10 +5,13 @@ export remote_url=''
|
|||
|
||||
export username=''
|
||||
export webuser=''
|
||||
export db_root_user=''
|
||||
export db_root_pass=''
|
||||
export wp_db_name=''
|
||||
export wp_db_user=''
|
||||
export wp_db_pass=''
|
||||
export wp_path=''
|
||||
export wp_user=''
|
||||
export wp_pass=''
|
||||
|
||||
export php_version=''
|
||||
|
||||
|
@ -20,3 +23,9 @@ export mysql_version=''
|
|||
export apache2_version=''
|
||||
export nginx_version=''
|
||||
export lightspeed_version=''
|
||||
|
||||
#set if using lightspeed
|
||||
# https://openlitespeed.org/kb/1-click-install/
|
||||
# password used to log into Lightspeed web interface)
|
||||
export ls_webadmin_pass=''
|
||||
export ls_lsphp_version=''
|
||||
|
|
|
@ -1,3 +1,48 @@
|
|||
#!/bin/sh
|
||||
|
||||
success="0"
|
||||
|
||||
if [ -n "$apache2_version" ] ; then
|
||||
echo "TODO install apache"
|
||||
exit 1
|
||||
|
||||
elif [ -n "$nginx_version" ] ; then
|
||||
echo "TODO install nginx"
|
||||
exit 1
|
||||
|
||||
elif [ -n "$lightspeed_version" ] ; then
|
||||
if [ "$lightspeed_version" != 'latest' ] ; then
|
||||
echo "TODO install specific Lightspeed version"
|
||||
echo ""
|
||||
echo "Specify \"lightspeed_version='latest'\" to install current version."
|
||||
exit 1
|
||||
fi
|
||||
if [ -n "$wp_user" ] ; then
|
||||
wget --no-check-certificate https://raw.githubusercontent.com/litespeedtech/ols1clk/master/ols1clk.sh && bash ols1clk.sh \
|
||||
--adminpassword "$ls_webadmin_pass" \
|
||||
--lsphp "$ls_lsphp_version" \
|
||||
--wordpressplus "$local_url" \
|
||||
--wordpresspath "$wp_path" \
|
||||
--dbrootpassword "$db_root_pass" \
|
||||
--dbpassword "$wp_db_pass" \
|
||||
--dbname "$wp_db_name" \
|
||||
--dbuser "$wp_db_user" \
|
||||
--wpuser "$wp_user" \
|
||||
--wppassword "$wp_pass" \
|
||||
&& success="1" \
|
||||
&& ufw allow 7080
|
||||
else
|
||||
echo "TODO install lightspeed without WordPress"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
else
|
||||
echo "$0: Error - no webserver specified in configuration"
|
||||
exit 5
|
||||
fi
|
||||
|
||||
if [ "$success" -eq 1 ] ; then
|
||||
ufw allow http \
|
||||
&& ufw allow https
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue