Uname:Linux sxb1plmcpnl510317.prod.sxb1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 92.204.28.36  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux sxb1plmcpnl510317.prod.sxb1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : f981716tud7w ( 9071646)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/f981716tud7w/www/useful/dlt/old/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/f981716tud7w/www/useful/dlt/old/dlt-staging-files-update.sh
#!/bin/bash

# Backup the dlt theme folder before update
TIMESTAMP=$(date +%Y%m%d%H%M%S)
THEME_DIR="/home/f981716tud7w/www/staging.dragonloretours.com/wp-content/themes/dlt"
BACKUP_DIR="/home/f981716tud7w/www/useful/dlt/theme-backups"
mkdir -p $BACKUP_DIR
tar -czf $BACKUP_DIR/dlt-backup-$TIMESTAMP.tar.gz $THEME_DIR

# Remove old staging files, create fresh directory
rm -rf /home/f981716tud7w/www/staging.dragonloretours.com/
mkdir -p /home/f981716tud7w/www/staging.dragonloretours.com/

# Copy live site www files to staging
cp -Raf /home/f981716tud7w/www/dragonloretours.com/www/* /home/f981716tud7w/www/staging.dragonloretours.com/

# Replace wp-config for staging
rm /home/f981716tud7w/www/staging.dragonloretours.com/wp-config.php
cp /home/f981716tud7w/www/useful/dlt/staging-wp-config.php /home/f981716tud7w/www/staging.dragonloretours.com/wp-config.php
cp /home/f981716tud7w/www/dragonloretours.com/www/.htaccess /home/f981716tud7w/www/staging.dragonloretours.com/.htaccess

# File permissions
find /home/f981716tud7w/www/staging.dragonloretours.com -type d -exec chmod 755 {} \;
find /home/f981716tud7w/www/dragonloretours.com/www -type f -exec chmod 664 {} \;
find /home/f981716tud7w/www/staging.dragonloretours.com/ -iname "*.php*" -exec chmod 600 {} \;
chmod 444 /home/f981716tud7w/www/staging.dragonloretours.com/.htaccess 
chmod 444 /home/f981716tud7w/www/staging.dragonloretours.com/wp-config.php

Youez - 2016 - github.com/yon3zu
LinuXploit