mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-06 15:16:24 +02:00
resolve merge conflicts
This commit is contained in:
@@ -329,8 +329,16 @@ fi
|
||||
|
||||
install_lscwp() {
|
||||
ssh_v="ssh -o StrictHostKeyChecking=no root@$server_ip -p$server_port -i /root/.ssh/cyberpanel_migration_key"
|
||||
|
||||
$ssh_v "ls -l /usr/bin/wp"
|
||||
if [[ $? != "0" ]] ; then
|
||||
$ssh_v "$sudoer wget -O /usr/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
|
||||
$ssh_v "$sudoer chmod +x /usr/bin/wp"
|
||||
fi
|
||||
#install WP CLI if not yet installed.
|
||||
$ssh_v "sudo -u $owner_user -i -- wp --path=/home/${domains[$i]}/public_html plugin install litespeed-cache"
|
||||
echo -e "\nInstalling LiteSpeed Cache for WordPress..."
|
||||
|
||||
}
|
||||
|
||||
export_database() {
|
||||
@@ -397,6 +405,16 @@ echo -e "\nNo file on this server will be touched.\n"
|
||||
read -rsn1 -p "Please press any key to continue..."
|
||||
}
|
||||
|
||||
db_length_check() {
|
||||
ssh_v="ssh -o StrictHostKeyChecking=no root@$server_ip -p$server_port -i /root/.ssh/cyberpanel_migration_key"
|
||||
output=$($ssh_v "$sudoer cat /usr/local/CyberCP/plogical/mysqlUtilities.py")
|
||||
if echo $output | grep -q "should be 16 at max" ; then
|
||||
echo -e "\nPlease upgrade your CyberPanel to latest first..."
|
||||
clean_up
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
check_dir
|
||||
#check if this is an easyengine server and create a temp dir for storing files during the process.
|
||||
|
||||
@@ -429,9 +447,10 @@ echo -e "\n\nchecking necessary package..."
|
||||
fi
|
||||
|
||||
fetch_cyberpanel_key
|
||||
|
||||
#function to get cyberpanel server key so future SSH command won't require password input.
|
||||
|
||||
db_length_check
|
||||
|
||||
tLen=${#domains[@]}
|
||||
#get the domain list and number of domains.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user