mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update setup_demo.sh
This commit is contained in:
parent
150b2f39a1
commit
7bc61e436d
@ -120,6 +120,28 @@ opencli user-suspend another
|
|||||||
|
|
||||||
echo "Setting demo..."
|
echo "Setting demo..."
|
||||||
|
|
||||||
|
##########################################
|
||||||
|
|
||||||
|
|
||||||
|
upload_wp_site_files() {
|
||||||
|
local wp_site_path="/home/stefan/demo.openpanel.org"
|
||||||
|
local wp_archive="https://wordpress.org/wordpress-latest.tar.gz"
|
||||||
|
|
||||||
|
rm -rf /tmp/wp-site
|
||||||
|
mkdir -p /tmp/wp-site
|
||||||
|
cd /tmp/wp-site
|
||||||
|
wget $wp_archive
|
||||||
|
tar -xzvf $wp_archive
|
||||||
|
cp -r wordpress/ $wp_site_path/
|
||||||
|
rm -rf /tmp/wp-site
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##########################################
|
||||||
|
|
||||||
write_fake_data
|
write_fake_data
|
||||||
|
|
||||||
setup_admin_panel
|
setup_admin_panel
|
||||||
@ -130,7 +152,6 @@ setup_user_panel
|
|||||||
|
|
||||||
# upload wp files from external - maybe git or download latest wp
|
# upload wp files from external - maybe git or download latest wp
|
||||||
upload_wp_site_files
|
upload_wp_site_files
|
||||||
|
|
||||||
# create db for user, import wp or inicialize with wpcli
|
# create db for user, import wp or inicialize with wpcli
|
||||||
create_db_user_import_wpdb
|
create_db_user_import_wpdb
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user