This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install -y xvfb | |
sudo apt-get install -y wkhtmltopdf | |
sudo apt-get install -y pdftk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
files=() | |
for home in /home/*; do | |
if [[ -d "${home}/public_html" ]]; then | |
if [[ -f "${home}/public_html/wp-config.php" ]]; then | |
files+=("${home}/public_html/wp-config.php") | |
fi | |
for folder in ${home}/public_html/*; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chmod 0755 /var/www | |
sudo chmod 0755 /var/www/html | |
sudo chmod 0640 /var/www/html/wp-config.php | |
sudo chown -R www-data:www-data /var/www/html | |
sudo find /var/www/html -type d -exec chmod 0755 {} \; | |
sudo find /var/www/html -type f -exec chmod 0644 {} \; | |
sudo find /var/www/html/wp-content/plugins -type f -name "*" -not -name "*.o" -exec sh -c ' | |
case "$(head -n 1 "$1")" in | |
?ELF*) exit 0;; | |
MZ*) exit 0;; |
OlderNewer