Created
September 5, 2017 19:02
-
-
Save daylik/9ed0cb06b0ee14aeaad249e35e8bbd20 to your computer and use it in GitHub Desktop.
This file contains 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 | |
dr=$1 | |
set_user=$2 | |
set_group=$3 | |
zDir="latest-ru_RU.zip" | |
wpInstall="https://ru.wordpress.org/"$zDir | |
eval "mkdir -p "$dr" && cd "$dr" && wget "$wpInstall" && unzip "$zDir" && cp -r "$dr"/wordpress/* "$dr" && rm -rf "$dr"/wordpress && rm -f -r "$zDir" && chown -R "$set_user":"$set_group" "$dr" && find "$dr" -type d -exec chmod 0755 {} \; && find "$dr" -type f -exec chmod 0644 {} \; && echo WordPress installation in directory "$dr" is done. " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment