| Server IP : _ / Your IP : 169.254.129.1 Web Server : nginx/1.28.0 System : Linux 89e302d72aa1 6.6.143.1-1.azl3 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 04:01:14 UTC 2026 x86_64 User : nginx ( 103) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/local/bin/ |
Upload File : |
#!/bin/bash
#trap "kill -- -$$" EXIT
MIN_VERSION="3.21.9.0"
CURR_VERSION=$(inotifywait -h | head -1 | awk '{print $2}')
TIMEOUT_SECONDS=0
if [ $(echo -e "${CURR_VERSION}\n${MIN_VERSION}" | sort -V | head -1) != "${MIN_VERSION}" ]; then
TIMEOUT_SECONDS=-1
fi
inotifywait -mrq -e CREATE -e MOVED_TO -e CLOSE_WRITE -t ${TIMEOUT_SECONDS} --format %w%f "$HOME_SITE_LOCAL_STG" --exclude "^$HOME_SITE_LOCAL_STG/wp-content/" | while read FILE
do
chown nginx:nginx $FILE
chmod 777 $FILE
done