39 lines
909 B
Bash
39 lines
909 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if [ -z "$1" ] ; then
|
||
|
echo "error: must specify configuration file to use"
|
||
|
exit 5
|
||
|
fi
|
||
|
|
||
|
. ./"$1"
|
||
|
|
||
|
ssh -T $ssh << EOSSH
|
||
|
|
||
|
ufw allow http && ufw allow https
|
||
|
|
||
|
if [ "$litespeed_version" != 'latest' ] ; then
|
||
|
echo "TODO install specific litespeed version"
|
||
|
echo ""
|
||
|
echo "Specify \"litespeed_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 "$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" \
|
||
|
&& ufw allow 7080
|
||
|
else
|
||
|
echo "TODO install litespeed without WordPress"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
EOSSH
|